﻿:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #f5f6fa;
    --card-background: #ffffff;
    --text-color: #1e293b;
    --border-radius: 8px;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 2rem auto 60px auto;
    padding: 1rem 1rem;
}
.plan-badge {
    background-color: #2563eb;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.navbar {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    background-color: #fff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: max-height 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: background-color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--secondary-color);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
    }

        .nav-links.show {
            max-height: 1000px; /* enough to show all items */
        }

        .nav-links li {
            width: 100%;
            text-align: left;
        }

        .nav-links a {
            display: block;
            width: 100%;
        }
}

/* Description Style */
.home-description {
    font-size: 1.125rem; /* Slightly larger than body text */
    font-weight: 400; /* Regular weight */
    color: var(--secondary-color);
    line-height: 1.6; /* Good line spacing */
    max-width: 700px; /* Keep lines readable */
    margin-bottom: 1.5rem; /* Space below each description block */
    font-family: 'Inter', sans-serif;
}

/* Optional: Highlight key words in descriptions */
.home-description strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.container {
    max-width: 1200px;
    padding: 0 1rem;
}

.dashboard-grid,
.accounts-grid,
.reports-grid,
.tax-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.reports-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#transactionList,
#bankList,
#taxTimeline {
    margin-top: 1rem;
}

canvas {
    width: 100%;
    max-height: 300px;
}
/* Header & Navigation */
header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    float:left;
}

.start-filing-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.start-filing-btn:hover {
  background-color: var(--secondary-color);
}

/* Main Content */
main {
  margin-top: 4rem;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background-color: var(--light-bg);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.pageheader {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 1rem 1rem;
}

.pageheader h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: var(--white);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2563eb;
}

.service-card p {
    color: #64748b;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background-color: var(--white);
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-card p {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-card cite {
    color: #64748b;
    font-style: normal;
    font-weight: 500;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background-color: #e6f0fb;
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta .btn-primary {
    background-color: var(--white);
    color: #2563eb;
}

.cta .btn-primary:hover {
    background-color: var(--gray-100);
}

.calculator-form {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}


#calculate-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

#tax-result {
  background-color: #f8fafc;
  padding: 1.5rem;
  border-radius: 4px;
  margin-top: 1.5rem;
}

.result-grid {
    font-size: 1.25rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.hidden {
  display: none;
}

/* Features Section */
.features {
  max-width: 1200px;
  margin: 1rem auto;
  padding: 2rem;
  text-align: center;
}

.features-left {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-top:10px;
}

/* Footer */
footer {
    background-color: var(--light-bg);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer-section a {
    display: block;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #2563eb;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    color: #64748b;
}

#payment-message {
    color: rgb(105, 115, 134);
    font-size: 16px;
    line-height: 20px;
    padding-top: 12px;
    text-align: center;
}

#payment-element {
    margin-bottom: 24px;
}

/* Buttons and links */
.checkout-button {
    background: #0055DE;
    font-family: Arial, sans-serif;
    color: #ffffff;
    border-radius: 4px;
    border: 0;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    transition: all 0.2s ease;
    box-shadow: 0px 4px 5.5px 0px rgba(0, 0, 0, 0.07);
    width: 100%;
}

.checkout-button:hover {
    filter: contrast(115%);
}

.checkout-button:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Payment status page */
#payment-status {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    width: 30vw;
    min-width: 500px;
    min-height: 380px;
    align-self: center;
    box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1), 0px 2px 5px 0px rgba(50, 50, 93, 0.1), 0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
    border-radius: 7px;
    padding: 40px;
    animation: fadeInAnimation 1s ease forwards;
}

#status-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
}

#status-text {
    margin: 0;
    color: #30313D;
    text-align: center;
}


#app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

planheader {
    text-align: center;
    margin-bottom: 4rem;
}

planheader h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

planheader p {
    color: #718096;
    font-size: 1.25rem;
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pricing-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    width: 350px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top:20px;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}
.limited-offer-tag {
    background: #e74c3c;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.plan-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.price .period {
    font-size: 1rem;
    color: #718096;
    font-weight: 400;
}

.plan-features {
    margin: 2rem 0;
    flex-grow: 1;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 0.5rem 0;
    color: #4A5568;
    display: flex;
    align-items: center;
}

.plan-features li::before {
    content: "✓";
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-weight: bold;
}

.subscribe-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.subscribe-btn:hover {
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .pricing-card {
        width: 100%;
        max-width: 350px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}
/* Make sure the outer container takes full height and centers the content */
.checkout-outer {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--background-color);
}

/* Responsive flex direction for .checkout-container */
@media (max-width: 900px) {
    .checkout-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }
    .price-breakdown, .checkout-form {
        max-width: 100%;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 1.25rem;
    }
}

/* Further adjustments for very small screens */
@media (max-width: 480px) {
    .checkout-outer {
        padding: 1rem 0.5rem;
    }
    .checkout-container {
        gap: 1rem;
        padding: 0.5rem;
    }
    .price-breakdown, .checkout-form {
        padding: 0.75rem 0.5rem;
        font-size: 0.97rem;
    }
    .price-breakdown h2 {
        font-size: 1.15rem;
    }
}

.checkout-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    max-width: 1200px;
}

.price-breakdown {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
    height: fit-content;
}

.price-breakdown .form-group {
    margin-bottom: 1rem;
}

.price-breakdown select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.price-breakdown h2 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.price-total {
    border-top: 2px solid #e5e7eb;
    margin-top: 1rem;
    padding-top: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.checkout-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

/* Filter */
.tracker-filter-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.tracker-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

/* Summary Cards */
.tracker-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tracker-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tracker-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tracker-card h2 {
    font-size: 1.125rem;
    font-weight: 600;
}

.tracker-balance, .tracker-total-income, .tracker-total-expense {
    font-size: 1.5rem;
    font-weight: bold;
}

.tracker-income-text {
    color: #10b981;
}

.tracker-expense-text {
    color: #ef4444;
}

.tracker-total-income {
    color: #10b981;
}

.tracker-total-expense {
    color: #ef4444;
}

/* Form */
.tracker-form-container {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.tracker-form-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.tracker-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tracker-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tracker-full-width {
    grid-column: 1 / -1;
}

.tracker-submit-btn {
    background-color: #3b82f6;
    color: white;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tracker-submit-btn:hover {
    background-color: #2563eb;
}

/* Transactions */
.tracker-transactions-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tracker-transactions-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.tracker-transaction-type {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tracker-type-income {
    background-color: #d1fae5;
    color: #065f46;
}

.tracker-type-expense {
    background-color: #fee2e2;
    color: #991b1b;
}

.tracker-amount-income {
    color: #10b981;
    font-weight: 500;
}

.tracker-amount-expense {
    color: #ef4444;
    font-weight: 500;
}

.tracker-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #6b7280;
    transition: color 0.2s;
}

.tracker-edit-btn:hover {
    color: #3b82f6;
}

.tracker-delete-btn:hover {
    color: #ef4444;
}

.tracker-empty-state {
    text-align: center;
    color: #6b7280;
}
/*TaxGPT*/

.chat-container {
    display: flex;
    flex-direction: column;
    height: 65vh;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-message {
    display: flex;
    padding: 1rem;
    border-radius: 0.5rem;
    max-width: 80%;
    animation: fadeIn 0.3s ease-in;
    gap: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    /*background-color: #343541;*/
    margin-left: auto;
    flex-direction: row-reverse;
}

.chat-message.assistant {
    /*background-color: #444654;*/
    margin-right: auto;
}

.chat-message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    flex-shrink: 0;
}

.chat-message.user .chat-message-avatar {
    background-color: #5D82A8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.chat-message.assistant .chat-message-avatar {
    background-color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-message-content {
    width: 100%;
    max-width: 800px;
    font-weight: 400;
    line-height: 1.5;
    font-size: 15px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.input-area {
    border-top: 1px solid #565869;
    padding: 1rem;
    background-color: #343541;
}

.chat-message-form {
    display: flex;
    gap: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
    background-color: #40414F;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #565869;
}

.chat-message-input {
    flex-grow: 1;
    background: none;
    border: none;
    color: #ECECF1;
    font-size: 1rem;
    resize: none;
    padding: 0.5rem;
    outline: none;
    font-family: inherit;
}

.chat-message-input::placeholder {
        color: #8E8EA0;
    }

.send-button {
    background: none;
    border: none;
    color: #19C37D;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.send-button:hover {
    background-color: rgba(25, 195, 125, 0.1);
}


/*Contribution Planner*/
.planner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.flex {
    display: flex;
    gap: 1rem;
}

.flex-col {
    flex-direction: column;
}
.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.planner-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.planner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* Progress bars */
.planner-progress {
    width: 100%;
    height: 0.5rem;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.planner-progress-bar {
    height: 100%;
    background: #3498db;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Icons */
.planner-icon {
    width: 1.5rem;
    height: 1.5rem;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Forms */
.planner-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.planner-input {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.planner-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}
/* Alerts */
.planner-alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.planner-alert-success {
    background: #d1fae5;
    color: #065f46;
}

.planner-alert-error {
    background: #fee2e2;
    color: #991b1b;
}
@media (max-width: 768px) {
    .planner-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }

    .planner-card {
        padding: 1rem;
    }

    .planner-card:hover {
        transform: none;
    }

    .flex {
        gap: 0.75rem;
    }
    .planner-input {
        font-size: 16px; /* Prevents iOS zoom on input focus */
        padding: 0.625rem;
    }

    .planner-alert {
        padding: 0.75rem;
    }

    .planner-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
}
/*Initialize Profile Setup*/


/* Container */
.init-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* Header */
.init-header {
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: var(--spacing-md) 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.init-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a73e8;
    font-weight: 600;
    font-size: 1.25rem;
}

.init-help-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: var(--spacing-sm) 16px;
    color: #5f6368;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.init-help-button:hover {
    background-color: #e8f0fe;
    color: #1a73e8;
    border-color: #e8f0fe;
}

/* Main Content */
.init-main {
    flex: 1;
    padding: var(--spacing-xl) 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.init-setup-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 720px;
    overflow: hidden;
}

/* Progress Bar */
.init-progress {
    padding: var(--spacing-lg) var(--spacing-lg) 0;
}

.init-progress-bar {
    background-color: #dadce0;
    height: 4px;
    border-radius: 2px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.init-progress-completed {
    background-color: #1a73e8;
    height: 100%;
    width: 33.33%;
    transition: width 0.3s ease;
}

.init-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.init-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.init-step-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #80868b;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.init-step-label {
    font-size: 0.875rem;
    color: #80868b;
    transition: color 0.3s ease;
}

.init-step-active .init-step-indicator {
    background-color: #1a73e8;
    border-color: #1a73e8;
    color: white;
}

.init-step-active .init-step-label {
    color: #1a73e8;
    font-weight: 500;
}

.init-step-completed .init-step-indicator {
    background-color: #1a73e8;
    border-color: #1a73e8;
    color: white;
}

/* Form */
.init-form {
    padding: 24px;
}

.init-form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.init-form-step.init-step-active {
    display: block;
}

.init-form-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #202124;
}

.init-form-subtitle {
    color: #5f6368;
    margin-bottom: 24px;
}

.init-form-group {
    margin-bottom: 24px;
}

.init-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #202124;
}

.init-required {
    color: #ea4335;
}

.init-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.init-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.init-select-wrapper {
    position: relative;
}

.init-select {
    width: 100%;
    padding: 16px;
    appearance: none;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.init-select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.init-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-right: 2px solid #80868b;
    border-bottom: 2px solid #80868b;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

/* Account Type Selector */
.init-account-type-selector {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.init-account-option {
    flex: 1;
    position: relative;
}

.init-account-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.init-account-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    border: 2px solid #dadce0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.init-account-option input[type="radio"]:checked + .init-account-label {
    border-color: #1a73e8;
    background-color: #e8f0fe;
}

.init-account-icon {
    color: #1a73e8;
    margin-bottom: 16px;
}

.init-account-text {
    text-align: center;
}

.init-account-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.init-account-text p {
    font-size: 0.875rem;
    color: #5f6368;
}

/* Business Fields */
.init-business-fields {
    display: block;
    animation: slideDown 0.3s ease;
}

/* Form Actions */
.init-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

.init-button {
    padding: var(--spacing-md) 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    text-align: center;
}

.init-button-primary {
    background-color: #1a73e8;
    color: white;
    border: none;
}

    .init-button-primary:hover {
        background-color: #0d47a1;
    }

.init-button-secondary {
    background-color: transparent;
    color: #1a73e8;
    border: 1px solid #1a73e8;
}

    .init-button-secondary:hover {
        background-color: #e8f0fe;
    }

/* Error Messages */
.init-error-message {
    color: #ea4335;
    font-size: 0.75rem;
    margin-top: 4px;
    min-height: 1rem;
}

/* Review Section */
.init-review-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.init-review-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #202124;
}

.init-review-item {
    display: flex;
    margin-bottom: 8px;
}

.init-review-label {
    font-weight: 500;
    width: 40%;
    color: #5f6368;
}

.init-review-value {
    font-weight: 500;
    color: #202124;
}

/* Footer */
.init-footer {
    background-color: #ffffff;
    border-top: 1px solid #dadce0;
    padding: var(--spacing-lg) 24px;
}

.init-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.875rem;
    color: #80868b;
}

.init-footer-links {
    display: flex;
    gap: 16px;
}

.init-footer-links a {
    color: #80868b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.init-footer-links a:hover {
    color: #1a73e8;
}

/* Success Modal */
.init-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .init-success-modal.init-visible {
        opacity: 1;
        visibility: visible;
    }

.init-modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.init-success-modal.init-visible .init-modal-content {
    transform: translateY(0);
}

.init-success-icon {
    color: #34a853;
    margin-bottom: 16px;
}

.init-success-modal h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.init-success-modal p {
    color: #5f6368;
    margin-bottom: 32px;
}
.hero {
    padding: 5rem 1rem;
    background-color: var(--light-bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}


.hero-app-promo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.hero-app-promo h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-app-promo p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.app-preview {
    width: 100%;
    max-width: 500px;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-badge {
    height: 48px;
    transition: transform 0.3s ease;
}

.app-badge:hover {
    transform: scale(1.05);
}

.tax-calculator {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.tax-calculator h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.calculator-form .tax-calc-input-group {
    margin-bottom: 1.25rem;
}

.tax-calc-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tax-calc-input-group input,
.tax-calc-input-group select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
}

.cta-button {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

    .cta-button:hover {
        background-color: var(--secondary-color);
    }

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-app-promo,
    .tax-calculator {
        align-items: center;
        justify-content: center;
    }

    .download-buttons {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .init-account-type-selector {
        flex-direction: column;
    }

    .init-form-actions {
        flex-direction: column-reverse;
    }

    .init-button {
        width: 100%;
    }

    .init-review-item {
        flex-direction: column;
        margin-bottom: 16px;
    }

    .init-review-label {
        width: 100%;
        margin-bottom: 4px;
    }

    .init-footer-content {
        flex-direction: column;
        gap: 16px;
    }

    .init-step-label {
        font-size: 0.75rem;
    }

    .init-progress-steps {
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .init-header {
        padding: 16px;
    }

    .init-logo span {
        display: none;
    }

    .init-form {
        padding: 16px;
    }

    .init-form-title {
        font-size: 1.25rem;
    }
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.2s;
}

.metric-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.metric-content h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.metric-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.metric-change.positive {
    color: #10b981;
}

.metric-change.negative {
    color: #ef4444;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* Deductions Grid */
.deductions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.deduction-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.deduction-icon {
    background-color: #dbeafe;
    color: #2563eb;
    padding: 0.5rem;
    border-radius: 9999px;
}

.deduction-content h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.deduction-amount {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2563eb;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.dashboard-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.dashboard-header-actions {
    display: flex;
    gap: 0.75rem;
}
.dashboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.dashboard-btn i {
    width: 1rem;
    height: 1rem;
}

.dashboard-btn-primary {
    background-color: #2563eb;
    color: white;
    border: none;
}

.dashboard-btn-primary:hover {
    background-color: #1d4ed8;
}

.dashboard-btn-outline {
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.dashboard-btn-outline:hover {
    background-color: #f9fafb;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-green {
    background-color: #DCFCE7;
    color: #166534;
}

.badge-red {
    background-color: #FEF2F2;
    color: #B91C1C;
}

.badge-blue {
    background-color: #DBEAFE;
    color: #1D4ED8;
}

.badge-grey {
    background-color: #F3F4F6;
    color: #374151;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.modalcontent {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.15);
    padding: 2rem 2rem 1.5rem 2rem;
    max-width: 450px;
    width: 90vw;
    text-align: center;
}

/* Tax Summary */
.tax-summary {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.tax-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tax-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}
.metrics-grid {
    display: flex;
    gap: 1rem;
}

.metric-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-radius: 1rem;
    min-width: 260px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    border: 2px solid transparent;
    background: #f8fafc;
    transition: box-shadow 0.2s;
}

.metric-card.income {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.metric-card.expense {
    background: #fef2f2;
    border-color: #fecaca;
}

.metric-card.net-profit {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.metric-card.mileage {
    background: #f1f5fe;
    border-color: #c7d7fe;
}

.metric-content h3 {
    margin: 0;
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 0.2rem 0 0.4rem 0;
}

.incomeamount,
.metric-card.income .metric-value,
.metric-card.net-profit .metric-value {
    color: #059669; /* green-600 */
}

.expenseamount,
.metric-card.expense .metric-value {
    color: #dc2626; /* red-600 */
}

.mileageamount,
.metric-card.mileage .metric-value {
    color: #2563eb; /* blue-600 */
}

.metric-icon {
    background: #f3f4f6;
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-card.income .metric-icon,
.metric-card.net-profit .metric-icon {
    background: #dcfce7;
    color: #10b981;
}

.metric-card.expense .metric-icon {
    background: #fee2e2;
    color: #ef4444;
}

.metric-card.mileage .metric-icon {
    background: #dbeafe;
    color: #2563eb;
}

.metric-change {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.metric-change.negative {
    color: #ef4444;
}

.metric-change.positive {
    color: #10b981;
}
.tax-info-banner {
    background-color: #FFFBEB;
    border-radius: 8px;
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    color: #B45309;
    margin-top: 24px;
    margin-bottom: 24px;
    border: 1px solid #FEF3C7;
    font-size: 16px;
}

.tax-info-icon {
    margin-top: 2px;
    font-size: 20px;
    color: #B45309;
}

.tax-info-title {
    font-weight: 500;
    color: #B45309;
    margin-bottom: 4px;
}

.tax-info-description {
    color: #B45309;
    font-size: 15px;
}
.tax-check-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

    .tax-check-list li {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        flex: 1 1 45%;
    }

.tax-check-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.tax-check-desc {
    font-size: 1rem;
    color: #444;
}

.tax-check-single-column {
    flex-direction: column !important;
    flex-wrap: nowrap;
}

.tax-check-list i {
    color: #22c55e;
    font-size: 22px;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .tax-check-list {
        flex-direction: column;
    }

    .tax-check-list li {
        flex: 1 1 100%;
    }

}


.homesection-left {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    align-items: flex-start;
    text-align: left;
}

.homesection-right {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.mileage-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    padding: 24px;
    margin-top: 32px;
    margin-bottom: 32px;
    border: 1px solid #e5e7eb;
    max-width: 100%;
    width: 100%;
}

.mileage-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.mileage-card-desc {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 18px;
}

.mileage-card-blue {
    background: #F1F5FE;
    border-radius: 8px;
    padding: 18px 18px 10px 18px;
}

.mileage-card-blue-header {
    color: #2563eb;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.mileage-card-blue-header i {
    font-size: 18px;
}

.mileage-card-blue-list {
    margin: 0;
    padding-left: 25px;
    font-size: 15px;
}

.mileage-card-blue-list li {
    color: #2563eb;
    margin-bottom: 5px;
}
/*
    subscription popup
*/
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modaldialog {
    background: #fff;
    border-radius: 15px;
    width: 440px;
    position: relative;
    font-family: Segoe UI, Arial, sans-serif;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #888;
}

.modal-offer {
    display: inline-block;
    background: #f2f5fb;
    color: #3366FF;
    font-size: 0.9rem;
    padding: 4px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.modal-title {
    text-align: center;
    font-size: 1.25rem;
    margin: 10px 0 20px 0;
    font-weight: bold;
}

.modal-body {
    text-align: left;
    padding: 0 30px;
}

.current-subscription {
    background-color: #f5f7ff;
    border: 1px solid #e5e9ff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.current-subscription h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.modal-features {
    list-style: none;
    padding-left: 0;
    margin: 20px 0 20px 0;
    color: #222;
}

.modal-features li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.modal-cta {
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    padding: 11px;
    margin-top: 10px;
    cursor: pointer;
}

.modal-cta:hover {
    background: #1d4ed8;
}

.modal-skip {
    color: #2563eb;
    text-align: center;
    cursor: pointer;
    margin-top: 16px;
    font-size: 1rem;
    text-decoration: underline;
}

.cancel-button {
    width: 100%;
    color: #e53935;
    background: none;
    border: 1px solid #e53935;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-button:hover {
    background-color: #ffebee;
}

.modal-footer {
    margin-top: 14px;
    font-size: 0.9rem;
    color: #888;
    text-align: center;
}
/* ========== User Guide Custom Styles ========== */

/* Tabs */
.ug-tabs {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    overflow: hidden;
}

.ug-tab-header {
    display: flex;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.ug-tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

    .ug-tab-btn.ug-active, .ug-tab-btn:focus {
        color: var(--secondary-color);
        border-bottom: 3px solid var(--secondary-color);
        background: var(--white);
    }

    .ug-tab-btn:hover {
        background: var(--gray-200);
    }

.ug-tab-content {
    padding: 2rem;
}

.ug-tab-pane {
    display: none;
}

.ug-tab-pane.ug-active {
    display: block;
    animation: ug-fadeIn 0.5s;
}

@keyframes ug-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flow Steps */
.ug-flow-diagram {
    margin: 0 0;
    background: var(--gray-100);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    font-size: 20px;
}

.ug-flow-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ug-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    animation: ug-fadeIn 0.5s;
    opacity: 1;
}

.ug-step-number {
    background: var(--secondary-color);
    color: #fff;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ug-step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.ug-step-content ul, .ug-step-content ol {
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.ug-tip, .ug-note {
    background: #e6f7f7;
    border-left: 4px solid var(--secondary-color);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-top: 0.5rem;
    color: #115e59;
    font-size: 0.98rem;
}

.ug-note {
    background: #fff7ed;
    border-left: 4px solid var(--accent-color);
    color: #ad4a00;
}

.ug-placeholder-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    opacity: 0.93;
    transition: opacity 0.3s;
}

    .ug-placeholder-image:hover {
        opacity: 1;
    }

/* Tips Cards */
.ug-tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.ug-tip-card {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.3s, transform 0.3s;
    text-align: center;
}

    .ug-tip-card:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.09);
        transform: translateY(-2px);
    }

.ug-tip-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.ug-tip-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.ug-tip-card p {
    color: #4a4a4a;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .ug-tab-content {
        padding: 1rem;
    }

    .ug-tips-container {
        grid-template-columns: 1fr;
    }

    .ug-flow-diagram {
        padding: 1rem;
    }
}
/*Cancel Subscription*/
.cancel-container {
    max-width: 1200px;
    margin: 3rem auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cancel-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.cancel-header p {
    font-size: 1rem;
    color: #475569;
}

.section-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    background: #ffffff;
}

.section-box h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.plan-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.plan-row div {
    flex: 1 1 45%;
    font-size: 1rem;
    color: #334155;
}

.highlight-badge {
    background: #2563eb;
    color: white;
    padding: 2px 10px;
    font-size: 1rem;
    border-radius: 8px;
    margin-left: 6px;
}

.warning-box {
    background: #fff1f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e293b
}

.warning-box ul {
    margin: 1rem 0;
    padding-left: 1.25rem;
    color: #1e293b
}

.warning-box li {
    margin-bottom: 0.5rem;
}

.cancel-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #334155;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.cancel-footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.return-btn-outline {
    background-color: #f1f5f9;
    color: #1e293b;
    padding: 0.75rem 1.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    min-width: 180px;
}

.return-btn-danger {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 180px;
}

.return-btn-danger:hover {
    background-color: #dc2626;
}

@media (max-width: 600px) {
    .plan-row div {
        flex: 1 1 100%;
    }

    .cancel-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
/*Popup receipt scan*/

/* Popup Dialog */
.receipt-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1001;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.receipt-popup.active .popup-content {
    transform: scale(1);
}

.popup-content h2 {
    margin: 0;
    padding: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #E5E5EA;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #666666;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Receipt Container */
.receipt-container {
    padding: 1rem;
}

/* Receipt Image */
.receipt-image-container {
    margin-bottom: 1.5rem;
}

.receipt-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.receipt-image-wrapper:hover {
    transform: translateY(-2px);
}

.receipt-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: filter 0.2s ease;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0.5rem;
    color: white;
    font-size: 0.85rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.receipt-image-wrapper:hover .image-overlay {
    opacity: 1;
}

/* Receipt Info */
.receipt-info {
    background-color: #F9F9F9;
    border-radius: 8px;
    padding: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #E5E5EA;
}

.info-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #666666;
    flex: 1;
}

.info-value {
    font-weight: 400;
    text-align: right;
    flex: 2;
}

.amount {
    font-weight: 600;
    color: #34C759;
}
.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background-color: #F9F9F9;
}
/* Responsive Design */
@media (max-width: 480px) {
    .popup-content {
        width: 95%;
    }

    .info-row {
        flex-direction: column;
    }

    .info-label {
        margin-bottom: 0.25rem;
    }

    .info-value {
        text-align: left;
    }
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.5); /* Grey and semi-transparent */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/*subscription cancelled*/
.cancel-success-container {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: #f9fafb;
}

.cancel-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    text-align: center;
}

.success-icon {
    background-color: #d1fae5;
    color: #22c55e;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-check {
    width: 30px;
    height: 30px;
}

.cancel-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 2rem;
}

.subscription-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.subscription-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    text-align: left;
    font-size: 0.95rem;
}

.subscription-details .value {
    color: #1e293b;
}

.status-text {
    color: #059669;
    font-weight: 600;
}

.next-header {
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}
.next-steps {
    text-align: left;
    padding-left: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #1e293b;
    font-size: 0.95rem;
    list-style: none; /* 🔥 This removes the bullet points */
}

.reactivate-text {
    font-size: 0.95rem;
    color: #475569;
}

    .reactivate-text a {
        color: #2563eb;
        text-decoration: underline;
    }

/* Responsive */
@media (max-width: 600px) {
    .subscription-details {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-outline,
    .btn-primary {
        width: 100%;
    }
}
