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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: 
        radial-gradient(ellipse 900px 800px at top left, #C8BAFA 0%, rgba(200, 186, 250, 0.6) 40%, rgba(200, 186, 250, 0.2) 60%, transparent 75%),
        radial-gradient(ellipse 900px 800px at top right, #A8C8F0 0%, rgba(168, 200, 240, 0.6) 40%, rgba(168, 200, 240, 0.2) 60%, transparent 75%),
        linear-gradient(to bottom, rgba(216, 232, 255, 0.6) 0%, rgba(210, 225, 245, 0.4) 25%, #FFFFFF 50%, #FFFFFF 100%);
    min-height: 100vh;
    padding: 0;
    padding-top: 63px;
    color: #0f172a;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 63px;
    background: white;
    z-index: 999;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container > .main-content-layout {
    padding: 0 32px;
}

header {
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 63px;
    z-index: 1000;
    box-sizing: border-box;
}

.toolbar {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.toolbar-item {
    position: relative;
}

.toolbar-link {
    color: #192849;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    display: block;
}

.toolbar-link:hover {
    background-color: rgba(29, 158, 116, 0.1);
    color: #1D9E74;
}

.dropdown-arrow {
    font-size: 0.65rem;
    margin-left: 4px;
    opacity: 0.6;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.toolbar-item:hover .dropdown-arrow {
    opacity: 1;
    transform: translateY(2px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    transform-origin: top center;
    z-index: 1000;
    pointer-events: none;
}

.toolbar-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 16px;
    min-width: 200px;
    animation: slideDown 0.2s ease-out;
}

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

.dropdown-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-section h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
    padding: 0 12px;
}

.dropdown-link {
    color: #192849;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 10px 12px;
    border-radius: 6px;
    transition: background-color 0.15s ease;
    display: block;
}

.dropdown-link:hover {
    background-color: rgba(29, 158, 116, 0.1);
    color: #1D9E74;
}

.pricing-mega-menu {
    left: 0 !important;
    right: 0;
    transform: none !important;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.toolbar-item:hover .pricing-mega-menu {
    transform: none !important;
}

.pricing-mega-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 48px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pricing-card-popular {
    background: #f0f9ff;
    border-color: #1D9E74;
    border-width: 2px;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #192849;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border-radius: 20px;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #192849;
    margin: 0 0 16px 0;
}

.pricing-amount {
    margin-bottom: 16px;
}

.price-symbol {
    font-size: 1.25rem;
    font-weight: 700;
    color: #192849;
    vertical-align: super;
}

.price-value {
    font-size: 3rem;
    font-weight: 700;
    color: #192849;
    line-height: 1;
}

.price-period {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 4px;
}

.price-custom {
    font-size: 1.25rem;
    font-weight: 700;
    color: #192849;
    display: block;
    padding: 16px 0;
}

.pricing-description {
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 24px 0;
    min-height: 42px;
}

.pricing-btn {
    background: white;
    color: #192849;
    border: 2px solid #192849;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.pricing-btn:hover {
    background: #192849;
    color: white;
}

.pricing-btn-primary {
    background: #1D9E74;
    border-color: #1D9E74;
    color: white;
}

.pricing-btn-primary:hover {
    background: #17865f;
    border-color: #17865f;
}

.pricing-features {
    text-align: left;
}

.pricing-features p {
    font-size: 0.875rem;
    color: #192849;
    margin: 0 0 12px 0;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    font-size: 0.875rem;
    color: #475569;
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.pricing-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1D9E74;
    font-weight: 700;
}

.logo-left {
    height: 35px;
    width: auto;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    margin-left: 40px;
}

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

.login-link {
    color: #192849;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: #1D9E74;
}

.logo-right {
    height: 162px;
    width: auto;
    filter: brightness(0);
    flex-shrink: 0;
    object-fit: cover;
    object-position: center;
    margin: -48px 0 -56px 0;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 8px;
    line-height: 1.25;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-content-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 40px;
    padding: 0 22px;
}

.metrics-sidebar {
    width: 11%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    margin-top: 67px;
    align-self: flex-start;
}

.metric-card-vertical {
    background: rgba(255, 255, 255, 0.95);
    padding: 24px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #0B408A;
}

.metric-card-vertical:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #192849;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #192849;
    letter-spacing: 0.02em;
    text-align: center;
    text-shadow: none;
}

section {
    padding: 0px 0px 40px 0px;
    margin-bottom: 40px;
}

.container > section.explore-features,
.container > section.cta-section {
    padding: 0px 32px 40px 32px;
}

.add-sheet-section {
    background: transparent;
}

h2 {
    color: #192849;
    margin-bottom: 24px;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: none;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    font-family: 'Inter', system-ui, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.radio-option:hover {
    border-color: #1D9E74;
    background: rgba(255, 255, 255, 1);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #1D9E74;
}

.radio-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #1D9E74;
}

.radio-option span {
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 500;
    flex: 1;
}

input[type="text"]::placeholder {
    color: #94a3b8;
}

.btn-primary {
    background: #3366FF;
    color: #ffffff;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.5;
    box-shadow: none;
    margin-top: 8px;
}

.btn-primary:hover {
    background: #2952CC;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    background: #1F3D99;
    transform: translateY(0);
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    font-family: 'Inter', system-ui, sans-serif;
}

.btn-danger:hover {
    background: #dc2626;
}

.message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 8px;
    display: none;
    font-size: 0.875rem;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.message.success {
    background: rgba(220, 252, 231, 0.95);
    color: #166534;
    border: 1px solid #86efac;
    display: block;
}

.message.error {
    background: rgba(254, 226, 226, 0.95);
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: block;
}

.sheets-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 24px;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sheets-table th {
    background: rgba(248, 250, 252, 0.95);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    line-height: 1.4;
}

.sheets-table th:first-child {
    border-top-left-radius: 8px;
}

.sheets-table th:last-child {
    border-top-right-radius: 8px;
}

.sheets-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.95);
}

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

.sheets-table tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.sheets-table tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.sheets-table tbody tr:hover td {
    background: rgba(248, 250, 252, 0.95);
}

.sheet-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease-in-out;
}

.sheet-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.status-indicator {
    font-size: 18px;
    display: inline-block;
    line-height: 1;
}

.mode-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.mode-independent {
    background: #dbeafe;
    color: #1e40af;
}

.mode-compare {
    background: #fae8ff;
    color: #7e22ce;
}

.loading {
    text-align: center;
    color: #ffffff;
    padding: 32px;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.no-sheets {
    text-align: center;
    color: #ffffff;
    padding: 32px;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.error-message {
    font-size: 0.75rem;
    color: #fee2e2;
    margin-top: 6px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.active-sheets-section {
    background: transparent;
    flex: 1;
    width: 87%;
    display: flex;
    flex-direction: column;
}

#sheetsContainer {
    min-height: 450px;
    max-height: 1200px;
    overflow-y: auto;
}

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

.section-header h2 {
    margin-bottom: 0;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.active {
    display: block;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    max-width: 600px;
    margin: 80px auto;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

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

.modal-header h2 {
    color: #0f172a;
    margin: 0;
    font-size: 1.5rem;
    text-shadow: none;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.15s ease-in-out;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.modal label {
    color: #0f172a;
    text-shadow: none;
}

.explore-features {
    background: linear-gradient(135deg, #B8C8FF 0%, #D8E3FF 50%, #E8EDFF 100%);
    padding: 64px 40px;
    margin: 60px 0 0 0;
}

.explore-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
}

.explore-left {
    flex: 1;
    max-width: 400px;
}

.explore-left h2 {
    color: #192849;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.explore-left p {
    color: #192849;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

.btn-outline {
    background: transparent;
    color: #3b5bdb;
    border: 2px solid #3b5bdb;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: #3b5bdb;
    color: white;
}

.explore-right {
    flex: 1;
    display: flex;
    gap: 16px;
}

.feature-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-name {
    flex: 1;
    color: #192849;
    font-weight: 600;
    font-size: 0.95rem;
}

.feature-arrow {
    color: #64748b;
    font-size: 1.2rem;
}

.cta-section {
    background: white;
    padding: 60px 40px;
    text-align: center;
    margin: 0;
}

.cta-section h2 {
    color: #192849;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 28px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-cta-primary {
    background: #1D9E74;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cta-primary:hover {
    background: #17805f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 158, 116, 0.3);
}

.btn-cta-secondary {
    background: #3b5bdb;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cta-secondary:hover {
    background: #2f4ab8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 91, 219, 0.3);
}

footer {
    background: transparent;
    padding: 45px 20px 15px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    margin-bottom: 25px;
}

.footer-logo {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.footer-columns {
    display: flex;
    gap: 45px;
    flex: 1;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column h4 {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.05em;
    margin: 0 0 6px 0;
}

.footer-column a {
    color: #192849;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.footer-column a:hover {
    color: #1D9E74;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    color: #64748b;
    font-size: 0.75rem;
}

.footer-bottom a {
    color: #192849;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.footer-bottom a:hover {
    color: #1D9E74;
}

.footer-smartsheet-logo {
    height: 62.5px;
    width: auto;
    object-fit: contain;
}
