:root {
    --ink-900: #0b1f2f;
    --ink-700: #1f3446;
    --ink-500: #4f5f6b;
    --surface: #ffffff;
    --surface-alt: #f4f7fb;
    --brand-600: #0f3d5e;
    --brand-500: #1f5c84;
    --brand-400: #2f7aa6;
    --accent-500: #ffb547;
    --radius-lg: 16px;
    --shadow-soft: 0 12px 30px rgba(9, 28, 44, 0.12);
}

body {
    background: #e9eff5;
    font-family: "Poppins", "Montserrat", "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-700);
    margin: 0;
    padding: 0;
}

.card {
    background: var(--surface);
    padding: 18px;
    border-radius: 12px;
    width: 320px;
    margin: 10px auto;
    text-align: center;
    box-shadow: 0 8px 18px rgba(18, 30, 45, 0.12);
}

.notice {
    margin: 10px 0 0 0;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fff3d9;
    color: #7a4b00;
    font-size: 0.9rem;
}

.hidden {
    display: none;
}

input {
    width: 100%;
    padding: 12px 12px;
    margin: 6px 0;
    border-radius: 5px;
    border: 1px solid #bbb;
    font-size: 0.95rem;
    box-sizing: border-box;
    background: #ffffff;
    color: var(--ink-700);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin: 6px 0;
}

.password-input-wrapper input {
    padding-right: 44px;
    margin: 0;
}

.pwd-toggle-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-700);
    transition: opacity 0.2s ease;
}

.pwd-toggle-btn:hover {
    opacity: 0.7;
}

.pwd-toggle-btn:active {
    opacity: 0.5;
}

.reset-block {
    margin-bottom: 10px;
}

.reset-actions-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pwd-rules {
    margin: 8px 0 12px;
    padding-left: 18px;
    text-align: left;
    font-size: 0.88rem;
    line-height: 1.4;
}

.pwd-rules li {
    margin-bottom: 4px;
    color: #7a1f1f;
}

.pwd-rules li.ok {
    color: #126b35;
}

.pwd-rules li.bad {
    color: #7a1f1f;
}

.form-msg {
    min-height: 1.3em;
    margin-top: 6px;
    font-weight: 600;
}

.form-msg.msg-error {
    color: #9f1239;
}

.form-msg.msg-success {
    color: #166534;
}

button {
    padding: 12px 18px;
    border: none;
    background: var(--brand-500);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
    font-size: 0.95rem;
    font-weight: 600;
}

button:hover {
    background: var(--brand-600);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 42, 67, 0.18);
}

button.pro-disabled,
button:disabled {
    background: #9aa7b4;
    color: #eef2f6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.aha-upgrade {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e4d6a0;
    background: linear-gradient(180deg, #fffdf4 0%, #fff8dd 100%);
}

.aha-title {
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
}

.aha-copy {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.45;
}

.aha-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-text {
    margin-right: 6px;
}

.support-email a {
    color: var(--brand-600);
    text-decoration: underline;
}

.support-email a:hover {
    color: var(--brand-500);
    text-decoration: none;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.stock-table-wrap {
    overflow-x: auto;
    margin-top: 8px;
}

.stock-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    table-layout: auto;
}

.stock-table th,
.stock-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #d7e1ea;
    white-space: nowrap;
}

.stock-table th {
    color: #334155;
    text-align: left;
    background: #f6f9fc;
    font-weight: 700;
}

.stock-table .num {
    text-align: right;
}

.action-table {
    width: 100%;
    border-collapse: collapse;
}

.action-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.action-table th,
.action-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #d9e3ef;
    vertical-align: middle;
}

.action-table th {
    text-align: left;
    background: #f6f9fc;
    font-weight: 700;
}

.action-table .num {
    text-align: right;
}

.action-table .action-col {
    min-width: 122px;
    text-align: center;
    white-space: nowrap;
}

.action-table .action-col button {
    min-width: 88px;
}

.hero {
    position: relative;
    background: linear-gradient(120deg, #f8fbff 0%, #eef4fb 50%, #e4edf7 100%);
    border-radius: 0;
    padding: 56px 6vw 64px;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    box-shadow: none;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto auto;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(47, 122, 166, 0.2), rgba(47, 122, 166, 0));
    transform: translate(10%, -10%);
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 108px;
    position: relative;
    z-index: 1;
}

.hero-side {
    position: absolute;
    top: 28px;
    width: 120px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1;
}

.hero-side-left {
    left: 0;
}

.hero-side-right {
    right: 0;
}

.hero-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.hero-card-rail {
    width: 100%;
}

.hero-card-media {
    min-height: 114px;
    padding: 9px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 244, 251, 0.94)),
        radial-gradient(circle at top right, rgba(47, 122, 166, 0.12), transparent 58%);
    border: 1px solid rgba(15, 42, 67, 0.1);
    box-shadow: 0 10px 20px rgba(15, 42, 67, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-image {
    width: 100%;
    max-width: 92px;
    aspect-ratio: 1 / 1.15;
    object-fit: contain;
    filter: saturate(1.05) contrast(1.02) drop-shadow(0 6px 12px rgba(15, 42, 67, 0.12));
}

.hero-card-note {
    margin: 0;
    min-height: 42px;
    padding: 8px 9px;
    text-align: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 42, 67, 0.1);
    box-shadow: 0 10px 20px rgba(15, 42, 67, 0.08);
    color: var(--ink-800);
    font-size: 0.67rem;
    line-height: 1.25;
    font-weight: 600;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 42, 67, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tagline {
    margin: 2px 0 0 0;
    color: var(--ink-500);
    font-size: 1.05rem;
}
.brand-title {
    margin: 0;
    font-family: "Montserrat", "Poppins", "Avenir Next", "Segoe UI", sans-serif;
    font-weight: 800;
    letter-spacing: 0.4px;
    font-size: 2.4rem;
    color: var(--ink-900);
}

.about-brand {
    margin: 10px 0 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.about-logo {
    width: 72px;
    height: 72px;
}

.about-title {
    margin: 0;
    font-family: "Montserrat", "Poppins", "Avenir Next", "Segoe UI", sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: var(--ink-900);
}

.hero-copy {
    color: var(--ink-700);
    line-height: 1.5;
    max-width: 860px;
    font-size: 1.02rem;
}

.hero-offer {
    background: linear-gradient(135deg, #f1fff7, #fff7e6);
    border: 1px solid #cfe7d7;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 10px 24px rgba(16, 34, 50, 0.08);
}

.hero-offer-title {
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 4px;
}

.hero-offer-body {
    color: var(--ink-700);
    line-height: 1.45;
}

.hero-identity {
    background: linear-gradient(150deg, #0f2a43 0%, #1b4f6f 100%);
    border-radius: 12px;
    padding: 16px;
    color: #f6fbff;
    box-shadow: var(--shadow-soft);
}

.hero-identity-title {
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-bottom: 6px;
}

.identity-brand-row {
    margin: 8px 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.identity-logo {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
}

.identity-brand-title {
    margin: 0;
    font-family: "Montserrat", "Poppins", "Avenir Next", "Segoe UI", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #f6fbff;
}
.hero-identity-copy {
    margin: 0 0 10px 0;
    line-height: 1.45;
    color: #d5ebf7;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-chips span {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(16, 34, 50, 0.08);
}

.setting label {
    display: block;
    font-size: 0.85rem;
    color: var(--ink-500);
    margin-bottom: 6px;
}

.setting select {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #c6d0d8;
    background: #ffffff;
    font-size: 0.95rem;
    color: var(--ink-700);
}

select {
    width: 100%;
    padding: 12px;
    margin: 6px 0;
    border-radius: 5px;
    border: 1px solid #bbb;
    background: #ffffff;
    font-size: 0.95rem;
    box-sizing: border-box;
    color: var(--ink-700);
}

.hero-actions,
.welcome-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.license-activate {
    margin: 10px 0 12px 0;
}

.license-activate p {
    margin: 6px 0 0 0;
    font-size: 0.9rem;
    color: #0f2a43;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.section-nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8fbff;
    border: 1px solid #e1e8f0;
    padding: 12px 16px;
    border-radius: 10px;
}

.section-user {
    font-weight: 600;
    color: var(--ink-900);
}

.section-date {
    color: var(--ink-500);
    font-size: 0.9rem;
}

.section-actions {
    display: flex;
    gap: 8px;
}

.btn-primary {
    background: var(--brand-600);
}

.btn-primary:hover {
    background: #0b2a40;
}

.btn-outline {
    background: transparent;
    color: var(--brand-600);
    border: 1px solid var(--brand-600);
}

.btn-outline:hover {
    background: var(--brand-600);
    color: #ffffff;
}

.support {
    margin-top: 6px;
    text-align: center;
    color: var(--ink-500);
}

.support-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.support-email {
    font-family: "Courier New", monospace;
    color: var(--brand-600);
}

.trust-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #dce6f0;
    display: grid;
    gap: 6px;
    text-align: center;
}

.trust-brand {
    font-weight: 700;
    color: var(--ink-900);
}

.trust-security {
    font-weight: 600;
    color: var(--ink-700);
}

.trust-version {
    font-size: 0.9rem;
    color: var(--ink-500);
}

.trust-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink-500);
}

.trust-links a {
    color: var(--brand-600);
    text-decoration: none;
    font-weight: 600;
}

.trust-links a:hover {
    text-decoration: underline;
}

.trust-rights,
.trust-dev {
    font-size: 0.9rem;
    color: var(--ink-500);
}

.legal-page {
    min-height: 100vh;
    padding: 28px 20px;
    background: linear-gradient(120deg, #f8fbff 0%, #eef4fb 50%, #e4edf7 100%);
}

.legal-card {
    max-width: 860px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(9, 28, 44, 0.12);
}

.legal-card h1,
.legal-card h2 {
    color: var(--ink-900);
}

.legal-updated {
    color: var(--ink-500);
    font-size: 0.92rem;
}

#about-section,
#login-section,
#register-section,
#reset-section,
#welcome-section,
#sales-section,
#stock-section,
#expenses-section,
#profit-section {
    padding: 28px 5vw;
}

.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 24px;
    align-items: start;
}

.hero-panel {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: 0 12px 30px rgba(12, 26, 40, 0.12);
}

.hero-panel h3 {
    margin: 0 0 8px 0;
    color: var(--ink-900);
}

.hero-panel p {
    margin: 0 0 8px 0;
    color: var(--ink-700);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.feature-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 10px 24px rgba(16, 34, 50, 0.08);
}

.feature-title {
    margin: 0 0 6px 0;
    font-weight: 700;
    color: var(--ink-900);
}

.feature-copy {
    margin: 0;
    color: var(--ink-700);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.step {
    background: #f8fbff;
    border: 1px solid #e1e8f0;
    border-radius: 12px;
    padding: 12px 14px;
}

.step-title {
    font-weight: 700;
    color: var(--ink-900);
    margin: 0 0 6px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.price-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 12px 24px rgba(16, 34, 50, 0.1);
    border: 1px solid #e8eef4;
}

.price-card h4 {
    margin: 0 0 6px 0;
    color: var(--ink-900);
}

.price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-600);
    margin: 6px 0;
}

.price-note {
    font-size: 0.9rem;
    color: var(--ink-500);
    margin: 0;
}

.cta-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f3d5e 0%, #1f5c84 100%);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(12, 26, 40, 0.18);
}

.cta-banner h3 {
    margin: 0;
    color: #ffffff;
}

.cta-banner p {
    margin: 4px 0 0 0;
    color: #e8f4ff;
}

.cta-banner .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 18px rgba(8, 21, 33, 0.2);
}

.cta-banner .btn-outline:hover {
    background: #0a2f49;
    color: #ffffff;
    border-color: #d3e9ff;
    box-shadow: 0 12px 24px rgba(4, 16, 28, 0.35);
}

@media (max-width: 720px) {
    .brand-row {
        align-items: flex-start;
        gap: 10px;
    }

    .brand-title {
        font-size: 1.85rem;
    }

    .hero {
        padding: 40px 18px 48px;
    }

    .hero-inner {
        padding: 0;
    }

    .hero-side {
        position: static;
        width: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin: 10px 0 0;
    }

    .hero-card-media {
        min-height: 150px;
        padding: 12px;
    }

    .hero-card-image {
        max-width: 128px;
    }

    .hero-card-note {
        min-height: 60px;
        font-size: 0.72rem;
        padding: 9px 10px;
    }

    .card {
        width: 100%;
        max-width: 420px;
    }

    .hero-split {
        grid-template-columns: 1fr;
    }
}
