body { background:#0f172a; }
.translator-page { min-height:calc(100vh - 120px); background:#0f172a; color:#fff; padding:48px 20px; }
.translator-wrap { max-width:920px; margin:auto; text-align:center; }
.translator-wrap h1 { margin:8px 0 10px; font-size:clamp(28px,5vw,42px); }
.version-badge { display:inline-block; padding:5px 12px; border-radius:999px; background:#1d4ed8; font-weight:700; }
.translator-hint { color:#cbd5e1; font-size:17px; }
.language-status { display:flex; justify-content:center; flex-wrap:wrap; gap:12px 28px; margin:22px 0; }
.language-status span { padding:9px 15px; border:1px solid rgba(255,255,255,.18); border-radius:12px; background:rgba(255,255,255,.07); }
.translation-language-control { display:flex; align-items:center; gap:8px; padding:7px 10px 7px 15px; border:1px solid rgba(255,255,255,.18); border-radius:12px; background:rgba(255,255,255,.07); }
.translation-language-control select { min-width:150px; padding:5px 30px 5px 9px; border:1px solid #64748b; border-radius:8px; background:#172033; color:#fff; font-weight:700; cursor:pointer; }
.translation-language-control option { background:#fff; color:#111827; }
.reset-languages { padding:8px 14px; border:1px solid #94a3b8; border-radius:10px; background:transparent; color:#e2e8f0; cursor:pointer; }
.reset-languages:hover { background:rgba(255,255,255,.1); }
.hold-to-talk { min-width:210px; min-height:76px; padding:16px 28px; border:0; border-radius:22px; background:linear-gradient(135deg,#2563eb,#1d4ed8); color:#fff; font-size:22px; font-weight:800; cursor:pointer; user-select:none; -webkit-user-select:none; touch-action:none; box-shadow:0 12px 30px rgba(37,99,235,.35); }
.hold-to-talk.recording { background:linear-gradient(135deg,#ef4444,#b91c1c); transform:scale(.97); box-shadow:0 0 0 8px rgba(239,68,68,.18),0 12px 30px rgba(239,68,68,.38); }
.hold-to-talk.processing,.hold-to-talk:disabled { background:#64748b; cursor:wait; opacity:.85; }
.microphone { margin-right:8px; }
.recording-status { min-height:28px; margin:12px 0 24px; color:#bfdbfe; font-weight:600; }
.visitor-notice { border-color:rgba(56,189,248,.48); }
.member-dashboard { margin:18px auto 0; padding:0 28px 32px; overflow:hidden; border:1px solid rgba(148,163,184,.38); border-radius:24px; background:linear-gradient(145deg,rgba(30,41,59,.82),rgba(15,23,42,.72)); box-shadow:0 20px 55px rgba(0,0,0,.3); backdrop-filter:blur(18px); }
.member-dashboard .member-hero { width:auto; margin:0 -28px 18px; border:0; border-bottom:1px solid rgba(148,163,184,.3); border-radius:0; }
.member-dashboard .entitlement-card { background:rgba(15,23,42,.34); }
.member-dashboard #conversationExperience { padding-top:4px; }
.member-hero { display:flex; align-items:center; gap:20px; min-height:190px; margin:18px 0; padding:26px; border:1px solid rgba(148,163,184,.35); border-radius:22px; background-size:cover; background-position:center; text-align:left; }
.member-logo { width:92px; height:92px; border-radius:20px; object-fit:cover; border:2px solid rgba(255,255,255,.7); }
.member-hero h2 { margin:3px 0 6px; font-size:30px; }.member-hero p { margin:0; color:#dbeafe; }.member-eyebrow { color:#93c5fd; font-weight:800; }
.credit-balance { margin-left:auto; min-width:150px; padding:18px; border-radius:16px; background:rgba(15,23,42,.82); text-align:center; }.credit-balance span { display:block; color:#cbd5e1; }.credit-balance strong { display:block; color:#facc15; font-size:30px; }
.usage-progress { max-width:620px; margin:0 auto 20px; padding:14px 18px; border:1px solid rgba(96,165,250,.32); border-radius:14px; background:rgba(30,41,59,.75); }
.usage-progress div { display:flex; justify-content:space-between; margin:5px 0; }.usage-progress progress { width:100%; height:10px; accent-color:#3b82f6; }
.credits-guide { max-width:820px; margin:28px auto; padding:30px; border:1px solid rgba(250,204,21,.5); border-radius:24px; background:linear-gradient(145deg,#172033,#111827); }
.credits-guide h2 { font-size:34px; }.guide-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:24px; text-align:left; }.guide-grid article { padding:18px; border:1px solid rgba(148,163,184,.3); border-radius:14px; background:rgba(255,255,255,.04); }.guide-grid h3 { font-size:18px; }.guide-grid p { color:#cbd5e1; }
.account-start-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin-top:18px; }.account-link { padding:11px 18px; border:1px solid #60a5fa; border-radius:10px; color:#fff; text-decoration:none; font-weight:800; }.account-link.primary { background:#2563eb; }
.chat-container { max-height:540px; overflow-y:auto; padding:8px; }
.message-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:18px; }
.glass-card { text-align:left; min-height:115px; padding:18px; border-radius:16px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); backdrop-filter:blur(18px); box-shadow:0 8px 32px rgba(0,0,0,.3); }
.card-label { color:#cbd5e1; font-size:13px; margin-bottom:10px; }
.card-text { color:#fff; font-size:20px; line-height:1.5; white-space:pre-wrap; word-break:break-word; }
.editable-original { min-height:72px; padding:9px 10px; margin:-9px -10px 0; border:1px dashed transparent; border-radius:9px; cursor:text; transition:border-color .15s,background .15s; }
.editable-original:hover { border-color:rgba(167,139,250,.55); background:rgba(255,255,255,.025); }
.editable-original:focus { outline:2px solid #8b5cf6; outline-offset:1px; border-color:transparent; background:rgba(15,23,42,.42); }
.editable-original[contenteditable="false"] { opacity:.7; cursor:wait; }
.speak-translation { margin-top:14px; border:1px solid #60a5fa; border-radius:10px; padding:7px 12px; background:rgba(37,99,235,.24); color:#fff; cursor:pointer; }
.speak-translation.speaking { border-color:#f87171; background:rgba(185,28,28,.45); }
.speak-translation:disabled { border-color:#64748b; background:#475569; color:#cbd5e1; cursor:not-allowed; opacity:.62; }
.report-translation { margin:14px 0 0 8px; border:1px solid #f59e0b; border-radius:10px; padding:7px 12px; background:rgba(180,83,9,.22); color:#fde68a; cursor:pointer; }
.report-translation:disabled { opacity:.65; cursor:default; }
.polish-original { margin-top:14px; border:1px solid #a78bfa; border-radius:10px; padding:7px 12px; background:rgba(109,40,217,.28); color:#ede9fe; cursor:pointer; }
.polish-original:hover:not(:disabled) { background:rgba(124,58,237,.48); }
.polish-original:disabled { border-color:#64748b; background:#475569; color:#cbd5e1; cursor:not-allowed; opacity:.62; }
.error-card { grid-column:1/-1; border-color:#f87171; }
@media(max-width:700px){ .translator-page{padding:30px 12px}.message-row,.guide-grid{grid-template-columns:1fr}.hold-to-talk{width:min(100%,320px)}.member-dashboard{padding:0 12px 22px}.member-dashboard .member-hero{margin:0 -12px 18px}.member-hero{align-items:flex-start;flex-wrap:wrap}.credit-balance{width:100%;margin-left:0} }

.stripe-plans { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:20px auto 28px; max-width:760px; }
.stripe-plan-card { padding:20px; border:1px solid rgba(96,165,250,.45); border-radius:18px; background:rgba(30,41,59,.88); text-align:left; }
.stripe-plan-card.premium { border-color:rgba(250,204,21,.55); }
.stripe-plan-card h2 { margin:0 0 8px; font-size:24px; }
.stripe-plan-card p { min-height:48px; color:#cbd5e1; line-height:1.5; }
.stripe-checkout-button { width:100%; padding:12px 16px; border:0; border-radius:11px; background:#635bff; color:#fff; font-size:16px; font-weight:800; cursor:pointer; }
.stripe-checkout-button:hover { filter:brightness(1.12); }
.payment-choice { display:grid; gap:10px; }
.stripe-plans.one-plan { grid-template-columns:minmax(0,620px); justify-content:center; }
.subscription-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin-top:12px; }
.subscription-actions a { color:#dbeafe; text-decoration:underline; }
.ui-language-control { display:flex; justify-content:center; align-items:center; gap:8px; margin:18px 0 8px; }
.ui-language-control select { padding:7px 28px 7px 9px; border:1px solid #64748b; border-radius:8px; background:#172033; color:#fff; }
.payment-choice form { margin:0; }
.paypal-checkout-button { width:100%; padding:12px 16px; border:0; border-radius:11px; background:#ffc439; color:#111827; font-size:16px; font-weight:800; cursor:pointer; }
.paypal-checkout-button:hover { background:#f4b728; }
.plan-legal { min-height:0!important; margin:14px 0 0; font-size:13px; }
.plan-legal a { color:#bfdbfe; }
.stripe-error { max-width:760px; margin:14px auto; padding:12px; border:1px solid #f87171; border-radius:10px; background:rgba(185,28,28,.25); color:#fecaca; }
.billing-result { max-width:680px; margin:60px auto; padding:28px; border:1px solid #475569; border-radius:18px; background:#172033; color:#fff; text-align:center; }
.billing-result a { display:inline-block; margin-top:12px; padding:11px 18px; border-radius:10px; background:#2563eb; color:#fff; text-decoration:none; font-weight:700; }
@media(max-width:700px){ .stripe-plans{grid-template-columns:1fr}.stripe-plan-card p{min-height:auto} }

.apk-download-panel { margin:18px auto 26px; max-width:420px; }
.download-apk-button {
    display:inline-flex; align-items:center; justify-content:center; gap:10px;
    min-width:220px; padding:13px 24px; border-radius:14px;
    background:linear-gradient(135deg,#16a34a,#15803d); color:#fff;
    font-size:18px; font-weight:800; text-decoration:none;
    box-shadow:0 10px 24px rgba(22,163,74,.28);
}
.download-apk-button:hover { color:#fff; filter:brightness(1.08); transform:translateY(-1px); }
.apk-download-note { margin:10px 0 0; color:#cbd5e1; font-size:14px; line-height:1.55; }
@media(max-width:700px){
    .download-apk-button{width:min(100%,320px)}
    .apk-download-note{padding:0 8px}
}


/* MaxAI MVC V6.10 - password-protected APK download */
.download-apk-button {
    border: 0;
    cursor: pointer;
}

.apk-download-dialog {
    width: min(92vw, 460px);
    padding: 0;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 18px;
    background: #172033;
    color: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

.apk-download-dialog::backdrop {
    background: rgba(2, 6, 23, .78);
    backdrop-filter: blur(5px);
}

.apk-password-form {
    padding: 22px;
}

.apk-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.apk-dialog-header h2 {
    margin: 0;
    font-size: 23px;
}

.apk-dialog-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.apk-android-only {
    margin: 8px 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(96, 165, 250, .45);
    border-radius: 12px;
    background: rgba(37, 99, 235, .18);
    color: #dbeafe;
    font-size: 18px;
    font-weight: 800;
}

.apk-password-form label {
    display: block;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-weight: 700;
}

.apk-password-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #64748b;
    border-radius: 11px;
    background: #0f172a;
    color: #fff;
    font-size: 17px;
}

.apk-password-form input:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

.apk-download-error {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #f87171;
    border-radius: 10px;
    background: rgba(185, 28, 28, .22);
    color: #fecaca;
    font-weight: 700;
}

.apk-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.apk-cancel-button,
.apk-confirm-button {
    padding: 11px 17px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}

.apk-cancel-button {
    border: 1px solid #94a3b8;
    background: transparent;
    color: #e2e8f0;
}

.apk-confirm-button {
    border: 0;
    background: #16a34a;
    color: #fff;
}

@media (max-width: 520px) {
    .apk-dialog-actions {
        flex-direction: column-reverse;
    }

    .apk-cancel-button,
    .apk-confirm-button {
        width: 100%;
    }
}
