/* AMA Speaking Platform - owner area & protection styles.
 Copyright (c) 2026 Soukaina (Teacher Souka). All rights reserved. */

body:not(.ama-owner) .owner-only { display: none !important; }

img, svg { -webkit-user-drag: none; user-select: none; }

body:not(.ama-owner) {
 -webkit-user-select: none;
 user-select: none;
 -webkit-touch-callout: none;
}
body:not(.ama-owner) input,
body:not(.ama-owner) textarea,
body:not(.ama-owner) [contenteditable="true"],
#view-admin, #view-admin * {
 -webkit-user-select: text;
 user-select: text;
 -webkit-touch-callout: default;
}

html.ama-no-print body > * { display: none !important; }
html.ama-no-print body::before {
 content: "© 2026 Soukaina (Teacher Souka) | AMA Speaking Platform. Printing is disabled to protect this course.";
 display: block;
 padding: 40px;
 font: 14pt 'Segoe UI', sans-serif;
 text-align: center;
}

.ama-copy-notice {
 position: fixed;
 left: 50%;
 top: 18px;
 transform: translate(-50%, -20px);
 background: #002366;
 color: #fff;
 border: 1px solid #c9952a;
 padding: 10px 18px;
 border-radius: 999px;
 font: 600 0.9rem 'Segoe UI', system-ui, sans-serif;
 box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
 opacity: 0;
 pointer-events: none;
 transition: opacity 0.2s, transform 0.2s;
 z-index: 2147483646;
}
.ama-copy-notice.is-on { opacity: 1; transform: translate(-50%, 0); }

.admin-gate__card .admin-remember {
 display: flex;
 gap: 10px;
 align-items: flex-start;
 margin: 12px 0 4px;
 font-size: 0.92rem;
 line-height: 1.4;
 text-align: left;
}
.admin-gate__card .admin-remember input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.admin-gate__card .admin-remember small { display: block; color: #5a6b82; }
.admin-gate__back {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 margin-top: 12px;
 background: none;
 border: 0;
 color: #1f3f9f;
 font: 600 0.95rem 'Segoe UI', system-ui, sans-serif;
 cursor: pointer;
 min-height: 44px;
}

.owner-sec { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; padding: 8px 0 20px; }
.owner-sec__card {
 background: #fff;
 border: 1px solid #c5d4e8;
 border-radius: 16px;
 padding: 20px;
 display: flex;
 flex-direction: column;
 gap: 8px;
 box-shadow: 0 6px 20px rgba(0, 35, 102, 0.06);
}
.owner-sec__card h3 { margin: 0 0 6px; color: #002366; font-family: 'Libre Baskerville', Georgia, serif; }
.owner-sec__card h3 i { color: #c9952a; margin-right: 6px; }
.owner-sec__card label { font-weight: 600; color: #0f2044; font-size: 0.92rem; margin-top: 4px; }
.owner-sec__card label small { color: #5a6b82; font-weight: 400; }
.owner-sec__card input {
 border: 1px solid #c5d4e8;
 border-radius: 10px;
 padding: 10px 12px;
 font-size: 1rem;
}
.owner-sec__card .cta-main { margin-top: 10px; align-self: flex-start; }
.owner-sec__session { margin: 0; padding: 10px 12px; background: #edf2ff; border-radius: 10px; line-height: 1.5; }
.owner-sec__hint { margin: 0; color: #5a6b82; font-size: 0.9rem; line-height: 1.5; }
.owner-sec__danger { align-self: flex-start; margin-top: 8px; color: #b3141b !important; border-color: #f2b8bb !important; }
.owner-sec__msg { min-height: 1.2em; margin: 6px 0 0; font-weight: 600; }
.owner-sec__msg.is-ok { color: #16794a; }
.owner-sec__msg.is-err { color: #b3141b; }

@media print {
 body::after {
 content: "© 2026 Soukaina (Teacher Souka) | AMA Speaking Platform | elite-speaking-hub.surge.sh | All rights reserved";
 display: block;
 margin-top: 24px;
 font: 10pt 'Segoe UI', sans-serif;
 color: #555;
 text-align: center;
 }
}

.site-foot__legal { color: inherit; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; white-space: nowrap; }

.ama-unofficial {
 position: fixed;
 inset: 0;
 z-index: 2147483647;
 display: grid;
 place-items: center;
 background: rgba(0, 20, 60, 0.94);
 color: #fff;
 font: 1.05rem/1.6 'Segoe UI', system-ui, sans-serif;
 padding: 24px;
 text-align: center;
}
.ama-unofficial__box { max-width: 520px; }
.ama-unofficial h2 { font-family: 'Libre Baskerville', Georgia, serif; margin: 0 0 12px; color: #f5c842; }
.ama-unofficial a {
 display: inline-block;
 margin-top: 16px;
 background: #e31b23;
 color: #fff;
 padding: 12px 22px;
 border-radius: 10px;
 text-decoration: none;
 font-weight: 700;
}
