* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
}

a {
    color: #2E7CB9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header / Nav */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #222;
}

.site-header .brand img {
    height: 36px;
    width: auto;
}

.site-header .brand span {
    font-size: 20px;
    font-weight: 600;
    color: #2E7CB9;
}

.site-nav a,
.site-nav .nav-user {
    margin-left: 24px;
    font-size: 15px;
    color: #555;
}

.site-nav .nav-user {
    font-weight: 500;
    color: #2E7CB9;
}

.site-nav a:hover {
    color: #2E7CB9;
}

/* Hotline nav badge */
.site-nav a.nav-hotline {
    color: #B71C1C;
    border: 1px solid #B71C1C;
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-nav a.nav-hotline:hover,
.site-nav a.nav-hotline.active {
    background: #B71C1C;
    color: #fff;
    text-decoration: none;
}

/* Hotline page */
.hotline-section {
    padding-top: 40px;
}

.hotline-intro {
    max-width: 680px;
    margin: 0 auto 20px;
    font-size: 16px;
    color: #444;
    line-height: 1.7;
}

.hotline-alerts {
    max-width: 680px;
    margin: 0 auto;
}

.hotline-alerts h2 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.alert-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #B71C1C;
    margin-top: 6px;
}

.alert-dot.resolved {
    background: #4CAF50;
}

.alert-text strong {
    display: block;
    font-size: 15px;
    color: #222;
    margin-bottom: 2px;
}

.alert-text span {
    font-size: 14px;
    color: #666;
}

.hotline-empty {
    color: #999;
    font-size: 16px;
    font-style: italic;
    padding: 20px 0;
}

.alerts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.alerts-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
    color: #333;
    font-size: 1rem;
}

.alerts-table tr:last-child td {
    border-bottom: none;
}

.alerts-table tr:hover td {
    background: #fafafa;
}

.col-datetime {
    white-space: nowrap;
    color: #888;
    width: 100px;
}

.col-location {
    white-space: nowrap;
    width: 120px;
}

.col-platform {
    white-space: nowrap;
    width: 90px;
}

.col-issue {
    line-height: 1.5;
}

.col-status {
    white-space: nowrap;
    font-weight: 600;
    width: 100px;
}

.col-status.status-inprocess { color: #888; }
.col-status.status-fixed     { color: #2E7D32; }
.col-status.status-monitoring { color: #E65100; }
.col-status.status-critical  { color: #B71C1C; }

/* Feedback form */
.hotline-feedback {
    max-width: 680px;
    margin: 0 auto 20px;
}

.hotline-feedback h2 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 16px;
}

.hotline-feedback textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.hotline-feedback textarea:focus {
    outline: none;
    border-color: #2E7CB9;
}

.hotline-feedback form {
    text-align: center;
}

.hotline-feedback textarea {
    text-align: left;
}

.hotline-feedback .btn-primary {
    margin-top: 12px;
    width: auto;
}

.feedback-login-prompt {
    color: #555;
    font-size: 16px;
    background: #F4F8FB;
    padding: 16px 20px;
    border-radius: 6px;
    text-align: center;
}

.feedback-login-prompt a {
    color: #2E7CB9;
    font-weight: 600;
}

.feedback-status {
    font-size: 16px;
    margin-top: 10px;
    min-height: 1.5em;
}

.feedback-success {
    color: #2E7D32;
}

.feedback-error {
    color: #B71C1C;
}

/* Layout */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 36px 0 60px;
}

.hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.hero h1 em {
    font-style: normal;
    color: #2E7CB9;
}

.hero .tagline {
    font-size: 18px;
    color: #666;
    max-width: 820px;
    margin: 0 auto 32px;
}

.hero .cta {
    display: inline-block;
    color: #2E7CB9;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 28px;
    text-decoration: none;
    padding: 10px 40px;
    border: 2px solid #2E7CB9;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.hero .cta:hover {
    background: #2E7CB9;
    color: #fff;
    text-decoration: none;
}

.beta-note {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-top: 28px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    background: #F4F8FB;
    padding: 16px 24px;
    border-left: 4px solid #2E7CB9;
    border-radius: 4px;
}

.beta-note strong {
    color: #2E7CB9;
}

.beta-note a {
    font-weight: 500;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section.alt {
    background: #F4F8FB;
}

.section h2 {
    font-size: 26px;
    font-weight: 600;
    color: #222;
    text-align: center;
    margin-bottom: 16px;
}

.section .subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto 40px;
}

/* Feature cards */
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.feature {
    background: #fff;
    border: 1px solid #e4eaf0;
    border-radius: 8px;
    padding: 28px;
}

.section.alt .feature {
    border-color: #dce4ec;
}

.feature h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2E7CB9;
    margin-bottom: 8px;
}

.feature p {
    font-size: 15px;
    color: #555;
}

/* Comparison */
.comparison-intro {
    text-align: center;
    color: #555;
    font-size: 16px;
    max-width: 720px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.section.alt > .container {
    max-width: 1100px;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 0 auto;
}

.comparison .col {
    padding: 28px 32px;
    border-radius: 10px;
}

.comparison .col.traditional {
    background: #fafafa;
    border: 1px solid #e0e0e0;
}

.comparison .col.p4pn {
    background: #EEF5FB;
    border: 1px solid #c4dbed;
}

.comparison .col h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.comparison .col.traditional h3 {
    color: #888;
}

.comparison .col.p4pn h3 {
    color: #2E7CB9;
}

.comparison ul {
    list-style: none;
    padding: 0;
}

.comparison li {
    font-size: 16px;
    padding: 8px 0;
    color: #555;
    line-height: 1.5;
}

.comparison li::before {
    margin-right: 8px;
}

.comparison .traditional li::before {
    content: "\2717";
    color: #c44;
}

.comparison .p4pn li::before {
    content: "\2713";
    color: #2E7CB9;
}

/* Footer */
.site-footer {
    border-top: 1px solid #e0e0e0;
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
    color: #999;
}

/* Auth pages */
.auth-container {
    max-width: 460px;
    margin: 60px auto 80px;
    padding: 0 24px;
}

.auth-card {
    background: #fff;
    border: 1px solid #e4eaf0;
    border-radius: 8px;
    padding: 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-card h1 {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    text-align: center;
    margin-bottom: 24px;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    font-size: 15px;
    margin-bottom: 24px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.auth-form .form-group .required {
    color: #c44;
}

.auth-form .form-group input {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: #2E7CB9;
    box-shadow: 0 0 0 3px rgba(46, 124, 185, 0.12);
}

.auth-form .form-group small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.form-actions {
    margin-top: 24px;
}

.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    background: #2E7CB9;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #24679A;
    text-decoration: none;
}

.btn-primary:disabled {
    background: #b0c4d8;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    color: #2E7CB9;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #2E7CB9;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-right: 8px;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #F4F8FB;
    text-decoration: none;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #888;
}

.auth-links .separator {
    margin: 0 8px;
    color: #ccc;
}

.error-message {
    background: #fff3e0;
    border-left: 4px solid #e67e22;
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #8a5a00;
}

.error-message h2 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #8a5a00;
    text-align: left;
}

.success-message {
    background: #f0f9f0;
    border-left: 4px solid #2E7CB9;
    padding: 20px 24px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #2a5a2a;
}

.success-message h1,
.success-message h2 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #2E7CB9;
    text-align: left;
}

.success-message p {
    margin-bottom: 8px;
}

.card-actions {
    margin-top: 16px;
}

.card-actions .btn-primary,
.card-actions .btn-secondary {
    width: auto;
}

/* Dashboard */
.dashboard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.dashboard-tabs {
    display: flex;
    border-bottom: 2px solid #e4eaf0;
    margin-bottom: 32px;
}

.tab-button {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.tab-button:hover {
    color: #2E7CB9;
    text-decoration: none;
}

.tab-button.active {
    color: #2E7CB9;
    border-bottom-color: #2E7CB9;
}

.dashboard-content h1 {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.dashboard-subtitle {
    color: #666;
    font-size: 15px;
    margin-bottom: 32px;
}

/* My VPN page — Getting Started steps */
.getting-started {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.step-card {
    display: flex;
    gap: 20px;
    background: #F4F8FB;
    border: 1px solid #e4eaf0;
    border-radius: 10px;
    padding: 28px 28px;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #2E7CB9;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

.step-body p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 14px;
}

.step-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #2E7CB9;
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid #2E7CB9;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.step-link:hover {
    background: #2E7CB9;
    color: #fff;
    text-decoration: none;
}

.step-link svg {
    flex-shrink: 0;
}

.app-screenshot {
    margin-top: 4px;
    text-align: center;
}

.app-screenshot img {
    max-width: 220px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.my-config-box {
    background: #EEF5FB;
    border: 1px solid #c4dbed;
    border-radius: 10px;
    padding: 24px 28px;
}

.my-config-box h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2E7CB9;
    margin-bottom: 8px;
}

.config-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    width: 280px;
    background: #2E7CB9;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 16px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 12px rgba(46, 124, 185, 0.25);
}

.config-download-btn:hover {
    background: #245f91;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 124, 185, 0.35);
    color: #fff;
    text-decoration: none;
}

.my-config-box > p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
}


/* Legacy — kept for install page */
.platform-req {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    width: 280px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    margin-top: 12px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.store-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

.store-button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.store-button.appstore {
    background: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.store-button.appstore:hover {
    background: #111;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.store-button.googleplay {
    background: #2E7CB9;
    box-shadow: 0 4px 12px rgba(46, 124, 185, 0.25);
}

.store-button.googleplay:hover {
    background: #24679A;
    box-shadow: 0 6px 20px rgba(46, 124, 185, 0.35);
}

.btn-small {
    width: auto;
    padding: 8px 20px;
    font-size: 14px;
}

.info-box {
    background: #EEF5FB;
    border: 1px solid #c4dbed;
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 15px;
    color: #333;
}

/* Settings page */
.settings-section {
    margin-bottom: 32px;
}

.settings-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    text-align: left;
    margin-bottom: 16px;
}

.settings-form {
    max-width: 400px;
}

.settings-form .form-group {
    margin-bottom: 16px;
}

.settings-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.settings-form .form-group input,
.settings-form .form-group select {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.settings-form .form-group input:focus,
.settings-form .form-group select:focus {
    outline: none;
    border-color: #2E7CB9;
    box-shadow: 0 0 0 3px rgba(46, 124, 185, 0.12);
}

.settings-form .form-group small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.readonly-field {
    padding: 10px 12px;
    font-size: 15px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #666;
}

.settings-divider {
    border-top: 1px solid #e4eaf0;
    margin: 32px 0;
}

/* Toast notifications */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: #2a8a2a;
}

.toast-error {
    background: #c44;
}

/* Hero image */
.hero-image {
    margin: 32px auto 0;
    max-width: 420px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Hero install buttons */
.hero-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 520px;
    margin: 32px auto 0;
}

.hero-buttons-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-install-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px 12px 40px;
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.hero-install-btn .btn-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.hero-install-btn span {
    text-align: center;
}

.hero-install-btn.desktop {
    background: #2E7CB9;
}

.hero-install-btn.desktop:hover {
    background: #24679A;
}

.hero-install-btn.mobile {
    background: #4A6FA5;
}

.hero-install-btn.mobile:hover {
    background: #3B5D8C;
}

.hero-install-btn:hover {
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
}

/* Install page */
.install-hero {
    text-align: center;
    padding: 60px 0 40px;
}

.install-hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.install-hero .tagline {
    font-size: 17px;
    color: #666;
    margin-bottom: 32px;
}

.platform-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.platform-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #d0d8e0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.platform-nav-link svg,
.platform-nav-link .nav-icon {
    width: 18px;
    height: 18px;
}

.platform-nav-link:hover {
    border-color: #2E7CB9;
    color: #2E7CB9;
    text-decoration: none;
}

.platform-nav-link.active {
    background: #2E7CB9;
    border-color: #2E7CB9;
    color: #fff;
}

/* Install platform sections */
.install-platform {
    max-width: 700px;
    margin: 0 auto;
}

.install-platform-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.install-platform-header h2 {
    text-align: left;
    margin-bottom: 0;
}

.install-platform-header .platform-req {
    margin-bottom: 0;
}

.platform-icon {
    width: 48px;
    height: 48px;
    color: #2E7CB9;
    flex-shrink: 0;
}

.install-platform > p {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Unified install button */
.install-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    min-width: 320px;
    justify-content: center;
    background: #2E7CB9;
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.install-btn:hover {
    background: #24679A;
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
}

.install-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.install-btn.disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.btn-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.coming-soon-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border: 1.5px solid #ccc;
    border-radius: 20px;
    white-space: nowrap;
}

.sha256-hashes {
    font-size: 12px;
    color: #666;
    margin-top: 16px;
    margin-bottom: 24px;
    word-break: break-all;
}

.sha256-hashes code {
    font-size: 11px;
    color: #555;
}

.install-cmd-wrap {
    position: relative;
    margin-top: 10px;
}

.install-cmd {
    background: #f5f7fa;
    color: #2d3748;
    border: 1px solid #e2e8f0;
    padding: 14px 48px 14px 18px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 14px;
    margin: 0;
    cursor: pointer;
}

.install-cmd code {
    color: inherit;
    background: none;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.copy-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #a0aec0;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s;
}

.copy-btn:hover {
    color: #4a5568;
}

.copy-btn.copied {
    color: #38a169;
}

.install-steps {
    margin-top: 24px;
    background: #fff;
    border: 1px solid #e4eaf0;
    border-radius: 8px;
    padding: 20px 24px;
}

.section.alt .install-steps {
    background: #fff;
}

.section:not(.alt) .install-steps {
    background: #F4F8FB;
    border-color: #e4eaf0;
}

.install-steps h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.install-steps ol {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    color: #555;
}

.install-steps li {
    margin-bottom: 4px;
}

.install-steps p {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
}

.install-steps code {
    background: #e8eef4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

.testflight-code-hint {
    font-size: 14px;
    color: #555;
    margin-top: 16px;
    margin-bottom: 6px;
}

.testflight-code-wrap {
    position: relative;
    display: inline-block;
    margin-top: 12px;
}

.testflight-code-wrap code {
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-size: 18px;
    letter-spacing: 2px;
    background: #e8eef4;
    display: inline-block;
    padding: 8px 40px 8px 20px;
    border-radius: 6px;
    color: #1a1a2e;
    font-weight: 600;
    user-select: all;
}

.install-screenshot {
    display: block;
    max-width: 260px;
    margin: 12px 0 4px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Install page store buttons (legacy — kept for non-install pages) */
.install-platform .store-button {
    margin-top: 0;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    position: relative;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #2E7CB9;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.menu-overlay.active {
    display: block;
}

body.menu-open {
    overflow: hidden;
}

/* Language dropdown */
.language-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    vertical-align: middle;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    color: #555;
    text-decoration: none;
    border: 1px solid #d0d8e0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
}

.language-toggle:hover {
    border-color: #2E7CB9;
    color: #2E7CB9;
    text-decoration: none;
}

.language-toggle svg {
    width: 16px;
    height: 16px;
}

.lang-code {
    font-weight: 600;
}

.language-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 100;
    overflow: hidden;
}

.language-menu.show {
    display: block;
}

.language-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s;
    margin-left: 0;
}

.language-menu a:hover {
    background: #f4f8fb;
    text-decoration: none;
}

.language-menu a.active {
    color: #2E7CB9;
    font-weight: 600;
    background: #f4f8fb;
}

.language-menu .checkmark {
    color: #2E7CB9;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 640px) {
    .hamburger {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 64px 0 2rem 0;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 100;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav.active {
        right: 0;
    }

    .site-nav a,
    .site-nav .nav-user {
        margin-left: 0;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        font-size: 16px;
        display: block;
    }

    .site-nav a:hover {
        background: #f4f8fb;
        text-decoration: none;
    }

    .site-nav a.nav-hotline {
        color: #555;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
        padding: 1rem 1.5rem;
        font-size: 16px;
        font-weight: normal;
        letter-spacing: normal;
        text-transform: none;
        background: none;
    }

    .site-nav a.nav-hotline:hover,
    .site-nav a.nav-hotline.active {
        background: #f4f8fb;
        color: #555;
    }

    .language-dropdown {
        margin-left: 0;
        width: 100%;
        display: block;
    }

    .language-toggle {
        width: 100%;
        padding: 1rem 1.5rem;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
        justify-content: flex-start;
        gap: 8px;
    }

    .language-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f4f8fb;
        min-width: 0;
        width: 100%;
    }

    .language-menu a {
        padding: 0.75rem 2rem;
    }

    .hero h1 {
        font-size: 28px;
    }

    .features,
    .comparison {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        grid-template-columns: 1fr;
        max-width: 260px;
    }

    .platform-nav {
        gap: 6px;
    }

    .platform-nav-link {
        padding: 6px 12px;
        font-size: 13px;
    }

    .install-platform-header {
        flex-direction: column;
        text-align: center;
    }

    .install-btn {
        min-width: 0;
        width: 100%;
    }

    .btn-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .install-platform-header h2 {
        text-align: center;
    }

    .step-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
}
