body {
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

/* Account Overview Page */
.account-overview {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.account-overview h1 {
    color: #0078d4;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.account-summary-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-header h2 {
    color: #666;
    font-size: 14px;
    margin: 0 0 8px 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.total-change {
    font-size: 14px;
    font-weight: 500;
}

.total-change.positive {
    color: #107c10;
}

.total-change.negative {
    color: #d13438;
}

.summary-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

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

.stat-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.portfolios-section h3 {
    color: #0078d4;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.portfolios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e0e0e0;
}

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

.portfolio-name {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.portfolio-change {
    font-size: 14px;
    font-weight: 500;
}

.portfolio-change.positive {
    color: #107c10;
}

.portfolio-change.negative {
    color: #d13438;
}

/* Add Portfolio Card */
.add-portfolio-card {
    border: 2px dashed #e0e0e0;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-portfolio-card:hover {
    border-color: #0078d4;
    background: #f8f9ff;
    box-shadow: 0 4px 16px rgba(0, 120, 212, 0.1);
}

.add-portfolio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #666;
}

.add-portfolio-icon {
    font-size: 32px;
    color: #0078d4;
    font-weight: 300;
    line-height: 1;
}

.add-portfolio-text {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.add-portfolio-card:hover .add-portfolio-content {
    color: #0078d4;
}

.add-portfolio-card:hover .add-portfolio-text {
    color: #0078d4;
}

.no-portfolios {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .account-overview {
        padding: 15px;
    }

    .account-overview h1 {
        font-size: 22px;
    }

    .portfolios-section h3 {
        font-size: 18px;
    }

    .portfolios-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .summary-stats {
        flex-direction: column;
        gap: 15px;
    }

    .total-value {
        font-size: 20px;
    }
}

/* Footer */
.footer {
    margin: 48px 0 0 0;
    padding: 20px 8px 18px 8px;
    color: #666;
    font-size: 1em;
    background: none;
    text-align: center;
    border-top: 1px solid #eaeaea;
}

.footer-links a {
    color: #0078d4;
    text-decoration: none;
    margin: 0 7px;
    font-size: 1em;
    transition: color 0.15s;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #005a9e;
    text-decoration: underline;
}

.footer-social {
    margin-top: 8px;
}

/* Navigation */
.navigation {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-logo {
    flex-shrink: 0;
    margin-right: 40px;
    position: relative;
}

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

.logo-link {
    font-size: 20px;
    font-weight: 600;
    color: #0078d4;
    text-decoration: none;
    transition: color 0.3s;
}

.logo-link:hover,
.logo-link:focus {
    color: #005bb5;
}

.logo-link:focus {
    outline: 2px solid #0078d4;
    outline-offset: 2px;
}

.nav-links {
    display: flex;
    gap: 20px;
    flex-grow: 1;
    justify-content: center;
}

.nav-link {
    padding: 8px 12px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s, border-bottom 0.2s;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #0078d4;
    border-bottom: 2px solid #0078d4;
}

.nav-link.active {
    color: #0078d4;
    border-bottom: 2px solid #0078d4;
    font-weight: 500;
}

.nav-link:focus {
    outline: 2px solid #0078d4;
    outline-offset: 2px;
}

#navigation+#content {
    padding-top: 60px;
}

h1 {
    color: #0078d4;
    font-size: 22px;
    margin-bottom: 15px;
}

.form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-container:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.h-flex {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.v-flex {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.wrap-flex {
    flex-wrap: wrap;
}

input,
select {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
    min-width: 120px;
}

.btn {
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    touch-action: manipulation;
}

.btn-primary {
    background-color: #0078d4;
    color: white;
}

.btn-primary:hover {
    background-color: #005bb5;
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #0078d4;
    border: 1px solid #0078d4 !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #e9ecef;
    outline: none;
}

.view-btn.active {
    background-color: #004a8f;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-edit {
    background-color: #ffb900;
    color: white;
    margin-left: 8px;
}

.btn-edit:hover {
    background-color: #e0a800;
}

.btn-delete {
    background-color: #d83b01;
    color: white;
    margin-left: 8px;
}

.btn-delete:hover {
    background-color: #b32d00;
}

.btn-save {
    background-color: #107c10;
    color: white;
    margin-left: 8px;
}

.btn-save:hover {
    background-color: #0a5f0a;
}

.btn-cancel {
    background-color: #6b7280;
    color: white;
    margin-left: 8px;
}

.btn-cancel:hover {
    background-color: #4b5563;
}

/* Helpers */
.cur-pointer {
    cursor: pointer;
}

.cur-pointer:hover {
    background-color: #f0f0f0;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    margin-bottom: 15px;
}


.table th {
    background-color: #0078d4;
    color: white;
    padding: 10px;
    text-align: left;
    font-size: 14px;
}

.table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

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

@media screen and (max-width: 1024px) {
    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .table th,
    .table td {
        min-width: 120px;
        padding: 10px;
        font-size: 13px;
    }

    .table th {
        position: sticky;
        top: 0;
        z-index: 10;
    }
}

/* !!!!! */

/* Portfolio Styles */
.portfolio-summary-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 15px !important;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.portfolio-title {
    color: #0078d4;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

.portfolio-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.stats-cards-container {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 200px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

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

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.balance-card {
    border-left: 4px solid #0078d4;
}

.balance-card .stat-value {
    color: #0078d4;
}

.profit-card {
    border-left: 4px solid transparent;
}

.profit-card.profit-positive {
    border-left-color: #107c10;
}

.profit-card.profit-negative {
    border-left-color: #d13438;
}

.profit-card .stat-value.profit {
    color: #107c10;
}

.profit-card .stat-value.loss {
    color: #d13438;
}

.total-cost-card {
    border-left: 4px solid #6b7280;
}

.total-cost-card .stat-value {
    color: #6b7280;
}

.current-price-input {
    width: 80px;
    margin-left: 8px;
}

.profit {
    color: #107c10;
    font-weight: bold;
}

.loss {
    color: #d13438;
    font-weight: bold;
}

.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
    margin-bottom: 15px;
}

.dropdown-container {
    position: relative;
    display: inline-block;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dropdown-container:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.subpage-container {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.subpage-container.fade-out {
    opacity: 0;
}

.subpage-container.fade-in {
    opacity: 1;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    padding: 12px;
    min-width: 180px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-menu.open {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
}

.dropdown-menu li:hover {
    background-color: #f0f0f0;
}

.dropdown-menu li span {
    flex-grow: 1;
    margin-right: 5px;
}

.dropdown-menu li span.selected {
    font-weight: bold;
    color: #107c10;
}

.menu-action-btn {
    background: none;
    border: none;
    color: #0078d4;
    cursor: pointer;
    padding: 0 8px;
    font-size: 16px;
    touch-action: manipulation;
}

.menu-action-btn:hover {
    color: #005bb5;
    text-decoration: none;
}

.menu-action-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    transition: color 0.3s ease;
}

.menu-divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 5px 0;
}

.menu-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    gap: 5px;
}

.menu-option:hover {
    background-color: #005a9e;
}

.menu-option i {
    font-size: 14px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal[style*="display: flex"] {
    opacity: 1;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    transform: translateY(-20px);
    transition: transform 0.2s ease;
}

.modal[style*="display: flex"] .modal-content {
    transform: translateY(0);
}

.modal-content h2#modal_title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.modal-content .form-group {
    margin-bottom: 15px;
}

.modal-content input,
.modal-content select {
    width: 100%;
    box-sizing: border-box;
}

.modal-content:focus-within {
    outline: 2px solid #0078d4;
    outline-offset: 2px;
}

.modal-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.modal-error {
    color: #d13438;
    font-size: 12px;
    margin-bottom: 10px;
}

.menu-action-btn.edit-action {
    color: #ffb900;
}

.menu-action-btn.edit-action:hover {
    color: #e0a800;
}

.menu-action-btn.delete-action {
    color: #d83b01;
}

.menu-action-btn.delete-action:hover {
    color: #b32d00;
}

.menu-action-btn.save-action {
    color: #107c10;
}

.menu-action-btn.save-action:hover {
    color: #0a5f0a;
}

.menu-action-btn.cancel-action {
    color: #6b7280;
}

.menu-action-btn.cancel-action:hover {
    color: #4b5563;
}

.sort-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 0 4px;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.2s ease;
    vertical-align: middle;
}

.sort-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.form-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.form-label {
    font-weight: 500;
    color: #333;
}

.chart-row {
    display: none;
    background-color: white;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.chart-row[style*="display: table-row"] {
    opacity: 1;
    cursor: default;
}

.chart-row-open {
    opacity: 1;
    cursor: default !important;
    display: table-row;
}

.chart-row-open:hover {
    background-color: white !important;
}

.table-chart-container {
    height: 350px;
}

.line {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #ccc;
}

.ai-report {
    margin-top: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
    overflow-x: auto;
    white-space: normal;
}

.ai-report h3 {
    margin: 0 0 10px 0;
    font-size: 17px;
    color: #333;
}

.ai-report h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #0078d4;
    font-weight: 600;
    border-bottom: 1px solid #0078d4;
    padding-bottom: 4px;
}

.ai-report p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    word-wrap: break-word;
}

.ai-report p:last-child {
    margin-bottom: 0;
}

/* Стили для форм авторизации и регистрации */
.auth-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.error-message {
    color: #d13438;
    font-size: 0.85em;
    text-align: center;
    margin-bottom: 8px;
}

.auth-button {
    background-color: #0078d4;
    color: #fff;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
    transition: background-color 0.2s;
}

.auth-button:hover,
.auth-button:focus {
    background-color: #005a9e;
    outline: none;
}

.auth-link {
    text-align: center;
    margin-top: 10px;
    font-size: 0.85em;
}

.auth-link a {
    color: #0078d4;
    text-decoration: none;
}

.auth-link a:hover,
.auth-link a:focus {
    color: #005a9e;
    text-decoration: underline;
}

.ticker-container {
    position: relative;
    display: inline-block;
}

.ticker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    padding: 5px 0;
}

.ticker-dropdown .item_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ticker-dropdown .item_list li {
    padding: 10px 12px;
    cursor: pointer;
    color: #333;
}

.ticker-dropdown .item_list li:hover,
.ticker-dropdown .item_list li.selected {
    background-color: #f0f0f0;
}

/* Tablet-specific styles */
@media screen and (max-width: 1024px) {
    body {
        padding: 0 10px;
        max-width: 100%;
    }

    .navigation {
        padding: 8px 10px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-logo {
        margin-right: 20px;
        position: relative;
        flex: 0 0 auto;
    }

    .nav-links {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        flex: 1;
    }

    .nav-link {
        font-size: 14px;
        padding: 6px 10px;
    }

    .nav-right {
        flex: 0 0 auto;
    }

    #navigation+#content {
        padding-top: 80px;
    }

    .form-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
        align-items: stretch;
    }

    .h-flex {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
    }

    .form-container:nth-child(1) {
        grid-template-columns: 1fr 1fr;
        /* Search and date inputs in two columns */
    }

    .form-container:nth-child(2) {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        /* Add Transaction button */
    }

    input,
    select {
        min-width: 0;
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }

    .btn {
        padding: 12px;
        font-size: 15px;
        width: 100%;
    }

    .sort-btn {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 13px;
        padding: 0 4px;
        color: #fff;
        opacity: 0.8;
        transition: opacity 0.3s ease, transform 0.2s ease;
        vertical-align: middle;
    }

    .sort-btn:hover {
        opacity: 1;
        transform: scale(1.1);
    }

    .menu-action-btn {
        font-size: 18px;
        padding: 0 10px;
    }

    .dropdown-menu {
        min-width: 160px;
        padding: 6px;
    }

    .dropdown-menu li {
        padding: 10px 0;
    }

    .ticker-dropdown {
        width: 100%;
        max-width: 300px;
    }

    .ticker-dropdown .item_list li {
        padding: 12px;
        font-size: 14px;
    }

    .modal-content {
        width: 95%;
        max-width: 500px;
        padding: 20px;
    }

    .modal-content .form-group {
        margin-bottom: 15px;
        position: relative;
    }

    .modal-content input,
    .modal-content select {
        padding: 12px;
        font-size: 15px;
    }

    .form-item {
        font-size: 14px;
    }

    .chart-container,
    .table-chart-container {
        height: 300px;
    }
}

.landing {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
    margin: 0 auto;
    padding: 0;
    max-width: 1100px;
}

section {
    margin: 48px 0;
    padding: 0 15px;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 40px 30px 35px 30px;
    margin-top: 50px;
    margin-bottom: 32px;
    gap: 40px;
}

.hero-content {
    flex: 1 1 320px;
    min-width: 260px;
}

.home-button {
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    font-size: 0.95em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.hero h1 {
    color: #0078d4;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-description {
    color: #555;
    font-size: 1.15em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 18px;
    margin-bottom: 0;
}

.hero-image {
    flex: 1 1 340px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 250px;
    padding-top: 16px;
    max-width: 420px;
}

.hero-image-screenshot {
    max-width: 420px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.why-choose h2,
.how-it-works h2,
.screenshots h2,
.who-for h2,
.ai-report-highlight h2,
.bottom-cta h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0078d4;
    margin-bottom: 15px;
    margin-top: 0;
}

.home-features {
    margin: 0 auto 8px auto;
    padding: 0;
    list-style: none;
    max-width: 540px;
    text-align: left;
}

.home-features li {
    font-size: 1.08em;
    color: #333;
    margin: 11px 0;
    padding-left: 27px;
    position: relative;
}

.home-features li::before {
    content: "✔";
    color: #0078d4;
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 1.05em;
}

.how-it-works ol {
    max-width: 440px;
    margin: 0 auto;
    padding: 0 0 0 22px;
    color: #555;
    font-size: 1.09em;
}

.screenshots-row {
    gap: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 22px;
}

.screenshot-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 16px 14px 12px 14px;
    max-width: 430px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screenshot-card img {
    width: 100%;
    max-width: 420px;
    border-radius: 10px;
}

.screenshot-card .caption {
    font-size: 0.98em;
    color: #0078d4;
    margin-top: 8px;
    text-align: center;
}

.ai-report-highlight {
    text-align: center;
    background: #f8fafe;
    border-radius: 12px;
    padding: 30px 16px 22px 16px;
    margin-top: 38px;
}

.ai-report-highlight img {
    margin: 0 auto;
    display: block;
    max-width: 600px;
    width: 98%;
    border-radius: 10px;
    margin-top: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.bottom-cta {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 30px 16px 32px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    margin-top: 40px;
}

.bottom-cta p {
    font-size: 1.15em;
    color: #555;
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        gap: 26px;
        padding: 26px 10px 25px 10px;
        margin-top: 28px;
    }

    .hero-image {
        padding-top: 0;
        margin-bottom: 0;
    }

    .screenshots-row {
        flex-direction: column;
        gap: 22px;
    }
}

@media (max-width: 600px) {
    .landing {
        max-width: 100%;
        padding: 0;
    }

    section {
        margin: 27px 0;
        padding: 0 4vw;
    }

    .screenshot-card {
        padding: 8px 2vw 10px 2vw;
        border-radius: 8px;
    }

    .ai-report-highlight {
        padding: 19px 2vw 14px 2vw;
        border-radius: 8px;
    }

    .bottom-cta {
        padding: 19px 2vw 17px 2vw;
        border-radius: 8px;
    }

    .hero {
        flex-direction: column;
        gap: 20px;
        padding: 16px 4vw 14px 4vw;
        margin-top: 12px;
        border-radius: 10px;
    }

    .hero-content,
    .hero-image {
        min-width: 0;
        width: 100%;
        flex: unset;
    }

    .hero h1 {
        font-size: 1.15rem;
        margin-bottom: 14px;
    }

    .hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .hero-image-screenshot {
        max-width: 100%;
        border-radius: 8px;
    }

    .screenshots-row {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 14px;
    }

    .screenshot-card {
        padding: 6px 2vw 8px 2vw;
        border-radius: 8px;
        max-width: 100%;
    }

    .screenshot-card img {
        max-width: 100%;
        border-radius: 8px;
    }

    /* Portfolio mobile styles */
    .portfolio-title {
        font-size: 22px;
    }

    .stats-cards-container {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .stat-card {
        min-width: 280px;
        max-width: 320px;
        width: 100%;
        padding: 15px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 12px;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .screenshots-row {
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center !important;
        align-items: flex-start;
        gap: 28px;
        margin-top: 18px;
    }

    .screenshot-card {
        max-width: 420px;
        margin: 0 auto;
        border-radius: 10px;
    }
}

/* Input with clear button styles */
.input-with-clear {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-clear input {
    flex: 1;
    padding-right: 35px;
}

.clear-button {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.clear-button:hover {
    background-color: #f0f0f0;
    color: #666;
}

.clear-button:active {
    background-color: #e0e0e0;
}