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

html {
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    width: 100vw;
    overflow-x: hidden;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    box-sizing: border-box;
    max-width: 100%;
}

:root {
    /* PrintPricePro Brand Colors - Updated to exactly match app */
    --primary-color: #6650A4; /* Exact color from ic_launcher_background.xml */
    --primary-dark: #4F41C5; /* Material color - Purple40 from Color.kt */
    --primary-light: #D0BCFF; /* Material color - Purple80 from Color.kt */
    
    --accent-color: #F6B731; /* Gold color from ic_launcher_foreground.xml */
    --accent-dark: #E5A620; /* Darker gold */
    --accent-light: #F8C554; /* Lighter gold */
    
    --secondary-color: #625b71; /* Material color - PurpleGrey40 from Color.kt */
    --secondary-light: #CCC2DC; /* Material color - PurpleGrey80 from Color.kt */
    
    --tertiary-color: #7D5260; /* Material color - Pink40 from Color.kt */
    --tertiary-light: #EFB8C8; /* Material color - Pink80 from Color.kt */
    
    --success-color: #10b981;
    --info-color: #6650A4;
    
    --text-primary: #1e293b;
    --text-secondary: #625b71; /* Material color - PurpleGrey40 */
    
    --bg-primary: #ffffff; /* White from Color.kt */
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --border-color: #e2e8f0;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 90%;
    position: relative;
}

/* Navbar */
.navbar {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-app-badge img {
    height: 30px;
    width: auto;
    transition: transform 0.2s ease;
}

.nav-app-badge a {
    display: flex;
    align-items: center;
    background: none;
    padding: 0;
    border: none;
}

.nav-app-badge a:hover img {
    transform: translateY(-2px);
}

.nav-app-badge span {
    display: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    width: 100vw;
    left: 0;
    right: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at bottom right, rgba(246, 183, 49, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.privacy-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.badge:hover {
    background-color: rgba(246, 183, 49, 0.2);
    border-color: rgba(246, 183, 49, 0.5);
    transform: translateY(-2px);
}

.badge-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.last-updated {
    opacity: 0.8;
    font-size: 0.875rem;
}

/* Main Content */
main {
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    overflow-x: hidden;
}

.main-content {
    padding: 3rem 0;
    margin: 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    margin: 0;
}

/* Features Section */
.features-section {
    margin: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-card-link {
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: block;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card-link .feature-card {
    border: 2px dashed rgba(102, 80, 164, 0.15);
}

.feature-card-link:hover .feature-card {
    background-color: rgba(102, 80, 164, 0.05);
    border: 2px dashed rgba(102, 80, 164, 0.3);
}

/* Sidebar */
.sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 90px;
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.sidebar-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.sidebar-nav a:hover {
    color: var(--primary-color);
    background-color: var(--bg-tertiary);
}

/* Content */
.content {
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.section {
    margin-bottom: 3rem;
}

.section:last-child {
    margin-bottom: 0;
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

.section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.section ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.section li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Info Boxes */
.info-box,
.success-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.info-box {
    background-color: #dbeafe;
    border-left: 4px solid var(--info-color);
}

.success-box {
    background-color: #d1fae5;
    border-left: 4px solid var(--success-color);
}

.info-icon,
.success-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke-width: 2;
}

.info-box .info-icon {
    color: var(--info-color);
}

.success-box .success-icon {
    color: var(--success-color);
}

.info-box p,
.success-box p {
    margin: 0;
    color: var(--text-primary);
}



/* Summary Section */
.summary-section {
    background: linear-gradient(135deg, #f3f0ff 0%, #e8e3ff 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
    border: 2px solid rgba(79, 65, 197, 0.1);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.summary-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    stroke-width: 3;
    flex-shrink: 0;
}

.summary-footer {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-right p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }

    .sidebar-sticky {
        position: static;
    }

    .content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        margin: 0 auto;
        width: 95%;
    }
    
    main {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .privacy-badges {
        gap: 1rem;
    }

    .badge {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .content {
        padding: 2rem 1.5rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .section h3 {
        font-size: 1.25rem;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Calculator Styles */
.calculator {
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
}

.calculator-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.calculator-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.google-play-badge {
    position: relative;
    display: flex;
    align-items: center;
}

.google-play-badge a {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: none;
    padding: 0;
    border: none;
    transition: all 0.3s ease;
}

.google-play-badge a:hover {
    transform: translateY(-2px);
}

.google-play-badge img {
    height: 32px;
    width: auto;
}

.google-play-badge span {
    display: none;
}

.calculator-body {
    padding: 1.5rem;
}

.calculator-sections-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

.calculator-section {
    border-radius: 8px;
    padding: 1.25rem;
}

.calculator-section-main {
    flex: 1;
    background-color: white;
    box-shadow: 0 4px 12px rgba(102, 80, 164, 0.15);
    border: 1px solid rgba(102, 80, 164, 0.2);
    z-index: 1;
}

.calculator-section-secondary {
    flex: 1;
    background-color: rgba(248, 250, 252, 0.85);
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Make sure the results display properly in the second section */
.calculator-section-secondary .calculator-results {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(102, 80, 164, 0.2);
    padding-bottom: 0.5rem;
}

.calculator-input-group {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 1rem;
}

.calculator-input-group:last-child {
    margin-bottom: 0;
}

.calculator-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calculator-input label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: left;
}

.calculator-input input, .calculator-input select {
    padding: 0.75rem 0.75rem 0.75rem 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: white;
    text-align: left;
}

.calculator-section-main .calculator-input label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    text-align: left;
    margin-bottom: 0.25rem;
}

.calculator-section-main .calculator-input input, 
.calculator-section-main .calculator-input select {
    font-size: 1.05rem;
    border: 1px solid rgba(102, 80, 164, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: left;
    height: 2.75rem;
    padding-left: 10px;
}

.calculator-section-secondary .calculator-input label {
    font-size: 0.85rem;
}

.calculator-section-secondary .calculator-input input,
.calculator-section-secondary .calculator-input select {
    background-color: rgba(255, 255, 255, 0.8);
    color: rgba(30, 41, 59, 0.8);
    border-style: dashed;
    border-color: rgba(226, 232, 240, 0.8);
    text-align: left;
    padding-left: 10px;
}

.calculator-section-secondary .calculator-input label {
    display: flex;
    justify-content: space-between; /* Keep this to push the Default text to the right */
    align-items: center;
    width: 100%; /* Ensure the label takes full width */
    text-align: left; /* Make the primary text left-aligned */
}

.calculator-section-secondary .calculator-input label::after {
    content: "Default";
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.7;
    font-style: italic;
    font-weight: normal;
    margin-left: auto; /* Push to the far right */
    padding-left: 5px; /* Add some space between main text and Default text */
}

.calculator-input input:focus, .calculator-input select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 80, 164, 0.1);
}

.time-input-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 2.75rem;
    border: 1px solid rgba(102, 80, 164, 0.2);
    border-radius: 6px;
    background-color: white;
    padding: 0 0.5rem;
    overflow: hidden;
}

.time-input {
    flex: 1;
    text-align: left;
    border: none !important;
    box-shadow: none !important;
    height: 100% !important;
    padding: 0 0 0 10px !important;
    width: calc(50% - 10px);
    max-width: none;
    min-width: 0;
}

.time-input:focus {
    border: none !important;
    box-shadow: none !important;
}

.time-separator {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex-shrink: 0;
}

.calculate-row {
    justify-content: center;
    margin-top: 0.5rem;
}

.calculate-btn, .reset-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(102, 80, 164, 0.25);
    text-align: center;
    width: 80%;
    max-width: 300px;
}

.calculate-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(102, 80, 164, 0.35);
}

/* Persistence info and reset link styling */
.persistence-info {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.7;
    margin: 0.75rem 0;
    line-height: 1.4;
}

.reset-link {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.85;
    display: inline;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-style: dotted;
}

.reset-link:hover {
    color: var(--primary-color);
    opacity: 1;
}

.get-app-link {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background-color: rgba(102, 80, 164, 0.1);
    border-radius: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px dashed rgba(102, 80, 164, 0.3);
}

.get-app-link:hover {
    background-color: rgba(102, 80, 164, 0.15);
    transform: translateY(-2px);
}

/* Reset Calculator Button */
.reset-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(237, 68, 68, 0.1);
    border: 1px dashed rgba(237, 68, 68, 0.4);
    border-radius: 6px;
    color: #d32f2f;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-btn:hover {
    background-color: rgba(237, 68, 68, 0.15);
    border-color: rgba(237, 68, 68, 0.6);
}

.calculator-results {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    width: 100%;
    /* Force visibility */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Keep for backward compatibility */
.calculator-results.active {
    display: block;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.results-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.toggle-formulas-btn {
    background-color: rgba(102, 80, 164, 0.1);
    border: none;
    border-radius: 4px;
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-formulas-btn:hover {
    background-color: rgba(102, 80, 164, 0.2);
}

.result-item {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.result-label {
    font-weight: 500;
}

.formula-explanation {
    width: 100%;
    margin-top: 0.8rem;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    padding: 0.8rem;
    font-size: 0.9rem;
    border: 1px dashed #e2e8f0;
    display: none;
}

.formula {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.calculation {
    font-family: monospace;
    background-color: rgba(102, 80, 164, 0.05);
    padding: 0.5rem;
    border-radius: 4px;
    color: var(--primary-color);
}

.show-formulas .formula-explanation {
    display: block;
}

/* Responsive styles for the calculator */
@media (max-width: 768px) {
    .calculator-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .google-play-badge {
        margin-top: 0.5rem;
    }
    
    .calculator-input-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calculator-body {
        padding: 1rem;
    }
    
    .calculator-sections-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .calculator-section-main {
        margin-bottom: 0;
    }
    
    .calculator-section-secondary {
        border-top: 1px dashed #e2e8f0;
        border-radius: 0 0 8px 8px;
        background-color: #f8fafc;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .calculator-sections-container {
        gap: 1rem;
    }
    
    .calculator-section {
        padding: 1rem;
    }
}

/* Main content containers */
.main-content-container {
    width: 100%;
    overflow-x: hidden;
    padding: 2rem;
}

.calculator-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.results-display {
    display: block !important;
}

.app-promotion-group {
    margin-top: 2rem;
    justify-content: center;
}

.app-promotion-center {
    text-align: center;
    width: 100%;
}

.app-promotion-title {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.content-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Homepage specific styles */
.home-hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    width: 100%;
    position: relative;
    margin: 0 auto !important;
    max-width: 1200px;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 2rem auto;
    box-shadow: 0 0 20px rgba(102, 80, 164, 0.3);
    background-color: transparent;
    object-fit: contain;
    transition: all 0.3s ease;
}

.app-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(102, 80, 164, 0.5), 0 0 10px rgba(246, 183, 49, 0.3);
}

/* Google Play Badge - Following official guidelines */
/* Source: https://partnermarketinghub.withgoogle.com/brands/google-play/visual-identity/badge-guidelines/ */
.google-play-button {
    display: inline-block;
    margin: 1.5rem 0;
    background-color: transparent;
    transition: transform 0.3s ease;
}

.google-play-button:hover {
    transform: translateY(-2px);
}

.google-play-button img {
    display: block;
    width: 180px; /* Following Google's badge size guidelines */
    height: auto;
    max-width: 100%;
    /* Maintaining aspect ratio as per Google guidelines */
}

.home-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.home-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(102, 80, 164, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 10px rgba(102, 80, 164, 0.3);
    border: 2px solid rgba(255, 255, 255, 1);
    background-color: #7661b5; /* Slightly lighter purple */
}

.secondary-button {
    background-color: rgba(79, 65, 197, 0.08);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(79, 65, 197, 0.15);
}

.secondary-button:hover {
    background-color: rgba(79, 65, 197, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(79, 65, 197, 0.2);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature {
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem auto;
    color: var(--accent-color);
    stroke-width: 1.5;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.links {
    margin: 3rem 0;
    text-align: center;
}

.links a {
    color: var(--primary-color);
    margin: 0 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
    background-color: rgba(79, 65, 197, 0.08);
}

/* App Info Section Styles */
.app-info-section {
    margin: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

.section-title span {
    color: var(--accent-color);
    position: relative;
}

.info-card {
    background-color: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-card h3 {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.info-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
    pointer-events: none;
}

.info-content {
    padding: 1.5rem;
}

.info-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.info-content ul, .info-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-content li {
    margin-bottom: 0.5rem;
}

.info-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.info-content strong em {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .home-title {
        font-size: 2rem;
    }
    
    .home-subtitle {
        font-size: 1.25rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .app-icon {
        width: 100px;
        height: 100px;
        border-radius: 50%;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .info-card h3 {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }
    
    .info-content {
        padding: 1rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* Info Icons and Modal */
.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 5px;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.info-icon:hover {
    background-color: var(--accent-color);
}

.modal-overlay {
    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: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    padding-right: 30px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.modal-body {
    padding: 1.5rem;
}

/* Remove spinner arrows from number inputs */
/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* Selection */
::selection {
    background-color: var(--primary-light);
    color: white;
}
