/* ═══════════════════════════════════════════════════════════════════════════════
   qrCatch UI — light, professional theme (2026-11-11)
   Scope: <body class="qc-ui"> only. Today: login.php (qc-auth) + index.php (qc-studio),
   the home pages under review. Every other page keeps its current look until approved.
   No backdrop-filter, no animated backgrounds: painted once, smooth on low-end phones.
   One language at a time: <html data-qc-lang="en|ar"> hides the other .en/.ar spans.
   ═══════════════════════════════════════════════════════════════════════════════ */

body.qc-ui {
    --qc-bg: #F4F6FB;
    --qc-surface: #FFFFFF;
    --qc-surface-2: #F7F8FC;
    --qc-line: #E3E7F0;
    --qc-line-strong: #CDD3E1;
    --qc-ink: #0F1531;
    --qc-text: #3C4463;
    --qc-muted: #7A829F;
    --qc-violet: #6D28D9;
    --qc-violet-600: #5B21B6;
    --qc-violet-50: #F4EFFF;
    --qc-violet-100: #E7DCFF;
    --qc-danger: #DC2650;
    --qc-ok: #0E9F6E;
    --qc-grad: linear-gradient(100deg, #E6007E 0%, #8A2BE2 55%, #1E80FF 100%);
    --qc-radius: 12px;
    --qc-radius-lg: 18px;
    --qc-shadow: 0 1px 2px rgba(15, 21, 49, .05), 0 12px 32px -20px rgba(15, 21, 49, .28);
    --qc-ring: 0 0 0 4px rgba(109, 40, 217, .14);
    --qc-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --qc-font-ar: "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, sans-serif;

    background: radial-gradient(1100px 380px at 50% -180px, rgba(138, 43, 226, .09), transparent 70%), var(--qc-bg) !important;
    background-attachment: scroll !important;
    color: var(--qc-text) !important;
    font-family: var(--qc-font) !important;
    -webkit-font-smoothing: antialiased;
}

/* old moving/gradient backgrounds are not used here */
body.qc-ui .qc-home-bg,
body.qc-ui .studio-bg,
body.qc-ui .auth-bg { display: none !important; }

/* ── one language at a time: Arabic (default) or French ─────────────────────── */
/* French reuses the .en spans, translated in place by assets/js/qrcatch-ui.js.   */
html[data-qc-lang="fr"] body.qc-ui .ar { display: none !important; }
html[data-qc-lang="ar"] body.qc-ui .en { display: none !important; }
html[data-qc-lang="fr"]:not(.qc-i18n-ready) body.qc-ui .en { visibility: hidden; }
html[data-qc-lang="ar"] body.qc-ui .ar {
    font-family: var(--qc-font-ar) !important;
    font-size: inherit !important;
    opacity: 1 !important;
    font-weight: inherit !important;
}
html[data-qc-lang] body.qc-ui .bilingual { justify-content: flex-start !important; }
html[data-qc-lang="ar"] body.qc-ui .studio-container,
html[data-qc-lang="ar"] body.qc-ui .auth-card { direction: rtl; }
html[data-qc-lang="ar"] body.qc-ui .form-label.required .ar::after { content: " *"; color: var(--qc-danger); }
html[data-qc-lang="ar"] body.qc-ui .studio-container input[type="url"],
html[data-qc-lang="ar"] body.qc-ui .studio-container input[type="email"],
html[data-qc-lang="ar"] body.qc-ui .studio-container input[type="tel"],
html[data-qc-lang="ar"] body.qc-ui .studio-container input[name*="url"],
html[data-qc-lang="ar"] body.qc-ui .studio-container .phone-group { direction: ltr; text-align: right; }
html[data-qc-lang="ar"] body.qc-ui .studio-container .phone-group { text-align: left; }
html[data-qc-lang="ar"] body.qc-ui { font-family: var(--qc-font-ar), var(--qc-font) !important; }

/* language switch */
body.qc-ui .qc-lang {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    border: 1px solid var(--qc-line);
    border-radius: 999px;
    background: var(--qc-surface);
    direction: ltr;
}
body.qc-ui .qc-lang button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--qc-muted);
    font: 600 12.5px/1 var(--qc-font);
    padding: 7px 12px;
    min-height: 32px;
    border-radius: 999px;
    cursor: pointer;
}
body.qc-ui .qc-lang button[lang="ar"] { font-family: var(--qc-font-ar); font-size: 13px; }
body.qc-ui .qc-lang button[aria-pressed="true"] { background: var(--qc-ink); color: #fff; }
body.qc-ui .qc-lang button:focus-visible { outline: 2px solid var(--qc-violet); outline-offset: 2px; }

/* ── logo on light surfaces ─────────────────────────────────────────────────── */
body.qc-ui .qc-logo { color: var(--qc-ink); }
body.qc-ui .qc-by { color: #565D80 !important; font-size: max(11px, var(--qc-by, .6rem)); font-weight: 500; letter-spacing: .02em; }
body.qc-ui .qc-word { filter: none; }

/* ── shared header, light ───────────────────────────────────────────────────── */
body.qc-ui .tb-main-header {
    background: rgba(255, 255, 255, .9) !important;
    border-bottom: 1px solid var(--qc-line) !important;
    box-shadow: 0 1px 0 rgba(15, 21, 49, .02) !important;
}
body.qc-ui .tb-main-header .nav-link {
    color: var(--qc-text) !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
body.qc-ui .tb-main-header .nav-link:hover { background: var(--qc-surface-2) !important; color: var(--qc-ink) !important; }
body.qc-ui .tb-main-header .nav-link.active,
body.qc-ui .tb-main-header .nav-link-primary.active { background: var(--qc-ink) !important; color: #fff !important; }
body.qc-ui .tb-main-header .nav-link-logout { color: var(--qc-danger) !important; background: #FFF0F4 !important; }
body.qc-ui .tb-main-header .user-avatar { background: var(--qc-ink) !important; color: #fff !important; border-color: transparent !important; }
body.qc-ui .tb-main-header .mobile-menu-toggle { color: var(--qc-ink) !important; background: var(--qc-surface-2) !important; border-color: var(--qc-line) !important; }
body.qc-ui .mobile-menu .mobile-menu-content { background: #fff !important; border: 1px solid var(--qc-line) !important; box-shadow: var(--qc-shadow) !important; }
body.qc-ui .mobile-menu .mobile-link { color: var(--qc-text) !important; }
body.qc-ui .mobile-menu .mobile-link:hover,
body.qc-ui .mobile-menu .mobile-link.active { background: #E9EDFD !important; color: #1B37B0 !important; }
body.qc-ui .mobile-menu .mobile-link-danger { color: #B42318 !important; background: #FFF1F0 !important; }
/* the dropdown itself was still the old dark navy around the white panel (2026-11-11) */
body.qc-ui .mobile-menu { background: #F3F5FB !important; border-bottom: 1px solid var(--qc-line) !important; box-shadow: 0 18px 40px -24px rgba(15, 21, 49, .35) !important; }
body.qc-ui .mobile-menu .mobile-divider { background: var(--qc-line) !important; }

/* ═══ LOGIN (qc-auth) ════════════════════════════════════════════════════════ */
body.qc-auth .auth-page { min-height: 100vh; min-height: 100dvh; padding: 28px 16px; }
body.qc-auth .auth-card {
    background: var(--qc-surface) !important;
    border: 1px solid var(--qc-line) !important;
    box-shadow: var(--qc-shadow) !important;
    border-radius: 22px !important;
    padding: 34px 30px 26px !important;
    max-width: 420px !important;
    position: relative;
}
body.qc-auth .auth-logo-qc { margin: 6px auto 18px !important; }
body.qc-auth .qc-logo--hero { --qc-mark: 64px; --qc-word: 30px; gap: .75rem; }
body.qc-auth .qc-logo--hero .qc-by { font-size: .72rem; }
body.qc-auth .auth-card > .qc-lang { position: absolute; top: 14px; right: 14px; }
html[data-qc-lang="ar"] body.qc-auth .auth-card > .qc-lang { right: auto; left: 14px; }
body.qc-auth .auth-header { margin-bottom: 20px !important; text-align: center; }
body.qc-auth .auth-title { color: var(--qc-ink) !important; font-size: 1.45rem !important; font-weight: 800 !important; letter-spacing: -.02em; margin: 0 0 4px !important; }
body.qc-auth .auth-subtitle { color: var(--qc-muted) !important; font-size: .95rem !important; margin: 0 !important; }
body.qc-auth .tb-input-group { margin-bottom: 14px !important; }
body.qc-auth .auth-label { color: var(--qc-ink) !important; font-weight: 600 !important; font-size: .88rem !important; margin-bottom: 6px !important; }
body.qc-auth .auth-input {
    background: var(--qc-surface) !important;
    border: 1px solid var(--qc-line-strong) !important;
    color: var(--qc-ink) !important;
    border-radius: var(--qc-radius) !important;
    height: 50px;
    font-size: 16px !important;
    box-shadow: none !important;
}
body.qc-auth .auth-input::placeholder { color: #9AA1BC !important; opacity: 1; }
body.qc-auth .auth-input:focus { border-color: var(--qc-violet) !important; box-shadow: var(--qc-ring) !important; outline: none !important; }
body.qc-auth .auth-input-icon,
body.qc-auth .auth-password-toggle { color: var(--qc-muted) !important; }
body.qc-auth .qc-hint { display: block; margin-top: 6px; color: var(--qc-muted); font-size: .8rem; }
body.qc-auth .auth-submit {
    background: var(--qc-grad) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 14px !important;
    min-height: 52px;
    font-weight: 700 !important;
    font-size: 1rem !important;
    box-shadow: 0 10px 24px -12px rgba(138, 43, 226, .65) !important;
    margin-top: 6px;
}
body.qc-auth .auth-submit:focus-visible { outline: 2px solid var(--qc-ink); outline-offset: 3px; }
body.qc-auth .auth-links {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    gap: 12px;
    margin-top: 18px !important;
    flex-wrap: nowrap !important;
}
body.qc-auth .auth-divider { display: none !important; }
body.qc-auth .auth-link { color: var(--qc-text) !important; font-weight: 600; font-size: .9rem; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
body.qc-auth .auth-link-primary { color: var(--qc-violet) !important; }
body.qc-auth .auth-message { border-radius: 12px !important; color: var(--qc-ink) !important; }
body.qc-auth .auth-message-error { background: #FFF1F4 !important; border: 1px solid #FFCCD8 !important; color: #A3123A !important; }
body.qc-auth .auth-message-success { background: #EEFBF5 !important; border: 1px solid #BDEBD6 !important; color: #0B6B4A !important; }
body.qc-auth .auth-message-info { background: var(--qc-violet-50) !important; border: 1px solid var(--qc-violet-100) !important; color: var(--qc-violet-600) !important; }
html[data-qc-lang="ar"] body.qc-auth .auth-input-icon { left: auto !important; right: 14px !important; }
html[data-qc-lang="ar"] body.qc-auth .auth-input { padding-left: 3rem !important; padding-right: 2.9rem !important; }
html[data-qc-lang="ar"] body.qc-auth .auth-password-toggle { right: auto !important; left: 10px !important; }
@media (max-width: 420px) {
    body.qc-auth .auth-page { padding: 16px 12px; align-items: flex-start; }
    body.qc-auth .auth-card { padding: 28px 18px 20px !important; border-radius: 20px !important; }
    body.qc-auth .qc-logo--hero { --qc-mark: 56px; --qc-word: 26px; }
}

/* ═══ CRÉER QR (qc-studio) ═══════════════════════════════════════════════════ */
body.qc-studio .studio-container { max-width: 1040px !important; padding: 20px 16px 120px !important; margin: 0 auto; }
body.qc-studio .page-title {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 14px !important;
}
body.qc-studio .page-title h1 {
    color: var(--qc-ink) !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    letter-spacing: -.025em;
    margin: 0 !important;
    width: auto !important;
}
body.qc-studio .page-title h1 i { display: none !important; }
body.qc-studio .page-title h1 .ar { font-size: 1em !important; opacity: 1 !important; }

/* summary: three quiet chips instead of three big cards */
body.qc-studio .stats-bar { display: flex !important; flex-wrap: wrap; gap: 8px !important; margin: 0 0 18px !important; }
body.qc-studio .stat-card {
    display: inline-flex !important;
    align-items: center;
    gap: 8px !important;
    padding: 5px 12px 5px 6px !important;
    min-height: 0 !important;
    background: var(--qc-surface) !important;
    border: 1px solid var(--qc-line) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}
body.qc-studio .stat-icon {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px;
    border-radius: 50% !important;
    background: var(--qc-violet-50) !important;
    color: var(--qc-violet) !important;
    font-size: 12px !important;
    box-shadow: none !important;
}
body.qc-studio .stat-info { display: flex !important; align-items: baseline; gap: 6px; }
body.qc-studio .stat-info h3 { color: var(--qc-ink) !important; font-size: .9rem !important; font-weight: 700 !important; margin: 0 !important; }
body.qc-studio .stat-info p { color: var(--qc-muted) !important; font-size: .8rem !important; margin: 0 !important; width: auto !important; }
body.qc-studio .stat-info p .ar { font-size: .8rem !important; }

body.qc-studio .message { border-radius: 12px !important; box-shadow: none !important; }
body.qc-studio .message-error { background: #FFF1F4 !important; border: 1px solid #FFCCD8 !important; color: #A3123A !important; }
body.qc-studio .message-success { background: #EEFBF5 !important; border: 1px solid #BDEBD6 !important; color: #0B6B4A !important; }

/* type picker: compact tiles, the most-used first, the rest behind "More types" */
body.qc-studio .qr-type-selector {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)) !important;
    gap: 10px !important;
    margin: 0 0 18px !important;
}
body.qc-studio .qr-type-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 14px 8px 12px !important;
    min-height: 0 !important;
    background: var(--qc-surface) !important;
    border: 1px solid var(--qc-line) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    color: var(--qc-text) !important;
    text-align: center;
    cursor: pointer;
    transform: none !important;
    transition: border-color .15s ease, background-color .15s ease;
}
body.qc-studio .qr-type-card:hover { border-color: var(--qc-line-strong) !important; background: var(--qc-surface-2) !important; }
body.qc-studio .qr-type-card.active {
    border-color: var(--qc-violet) !important;
    background: var(--qc-violet-50) !important;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, .10) !important;
}
body.qc-studio .qr-type-card:focus-visible { outline: 2px solid var(--qc-violet) !important; outline-offset: 2px; }
body.qc-studio .qr-type-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 11px !important;
    margin: 0 !important;
    display: grid !important;
    place-items: center;
    background: var(--qc-surface-2) !important;
    color: var(--qc-ink) !important;
    box-shadow: none !important;
    font-size: 0 !important;
}
body.qc-studio .qr-type-card.active .qr-type-icon { background: var(--qc-violet) !important; color: #fff !important; }
body.qc-studio .qr-type-icon i { display: none !important; }
body.qc-studio .qr-type-icon::before {
    content: "";
    width: 21px;
    height: 21px;
    background: currentColor;
    -webkit-mask: var(--qc-ico) center / contain no-repeat;
    mask: var(--qc-ico) center / contain no-repeat;
}
body.qc-studio .qr-type-card h4 {
    color: var(--qc-ink) !important;
    font-size: .8rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    width: 100% !important;
    display: block !important;
}
body.qc-studio .qr-type-card h4 .en,
body.qc-studio .qr-type-card h4 .ar { display: block; justify-content: center; }
body.qc-studio .qr-type-card p { display: none !important; }
body.qc-studio .qr-type-selector.qc-collapsed .qr-type-card:not(.qc-primary):not(.active) { display: none !important; }
body.qc-studio .qc-more-types {
    appearance: none;
    border: 1px dashed var(--qc-line-strong);
    background: transparent;
    border-radius: 14px;
    color: var(--qc-violet);
    font: 600 .8rem/1.25 var(--qc-font);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 8px 12px;
    cursor: pointer;
    min-height: 44px;
}
body.qc-studio .qc-more-types .qc-more-ico {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--qc-violet-50);
    font-size: 18px;
    line-height: 1;
}
body.qc-studio .qc-more-types:focus-visible { outline: 2px solid var(--qc-violet); outline-offset: 2px; }

/* the form card */
body.qc-studio .studio-card {
    background: var(--qc-surface) !important;
    border: 1px solid var(--qc-line) !important;
    border-radius: var(--qc-radius-lg) !important;
    box-shadow: var(--qc-shadow) !important;
    padding: 6px 24px 22px !important;
    overflow: visible !important;
    color: var(--qc-text) !important;
}
body.qc-studio .form-section {
    margin: 0 !important;
    padding: 18px 0 !important;
    border-bottom: 1px solid var(--qc-line) !important;
    background: transparent !important;
    border-radius: 0 !important;
}
body.qc-studio .form-section:last-child { border-bottom: 0 !important; }
body.qc-studio .section-title {
    color: var(--qc-ink) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    gap: 10px;
}
body.qc-studio .section-title i { color: var(--qc-violet) !important; background: none !important; width: auto !important; height: auto !important; font-size: .95rem !important; }
body.qc-studio .section-title.qc-acc {
    cursor: pointer;
    user-select: none;
    min-height: 44px;
    margin: -6px 0 8px !important;
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
}
body.qc-studio .section-title.qc-acc::after {
    content: "";
    margin-inline-start: auto;
    flex: none;
    width: 18px;
    height: 18px;
    background: var(--qc-muted);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .2s ease;
}
body.qc-studio .form-section.qc-collapsed > .section-title.qc-acc { margin-bottom: -6px !important; }
body.qc-studio .form-section.qc-collapsed > .section-title.qc-acc::after { transform: rotate(-90deg); }
html[data-qc-lang="ar"] body.qc-studio .form-section.qc-collapsed > .section-title.qc-acc::after { transform: rotate(90deg); }
body.qc-studio .form-section.qc-collapsed > :not(.section-title) { display: none !important; }
body.qc-studio .section-title .qc-filled {
    flex: none;
    font: 600 .72rem/1 var(--qc-font);
    color: var(--qc-violet-600);
    background: var(--qc-violet-50);
    border-radius: 999px;
    padding: 4px 8px;
}
body.qc-studio .section-title:focus-visible { outline: 2px solid var(--qc-violet); outline-offset: 4px; border-radius: 8px; }

/* fields */
body.qc-studio .form-group { margin-bottom: 14px !important; }
body.qc-studio .form-label {
    color: var(--qc-ink) !important;
    font-size: .85rem !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
}
body.qc-studio .form-label .ar { font-size: .85rem !important; }
body.qc-studio .form-hint,
body.qc-studio .form-hint .en,
body.qc-studio .form-hint .ar { color: var(--qc-muted) !important; font-size: .78rem !important; opacity: 1 !important; }
body.qc-studio .form-input,
body.qc-studio .design-select,
body.qc-studio .design-text-input,
body.qc-studio .color-input-wrap input[type="text"] {
    background: var(--qc-surface) !important;
    border: 1px solid var(--qc-line-strong) !important;
    color: var(--qc-ink) !important;
    border-radius: var(--qc-radius) !important;
    font-size: 16px !important;
    box-shadow: none !important;
}
body.qc-studio .form-input:not(textarea) { min-height: 46px; }
body.qc-studio .form-input::placeholder,
body.qc-studio .design-text-input::placeholder { color: #A0A7C0 !important; opacity: 1 !important; }
body.qc-studio .form-input:focus,
body.qc-studio .design-select:focus,
body.qc-studio .design-text-input:focus { border-color: var(--qc-violet) !important; box-shadow: var(--qc-ring) !important; outline: none !important; }
body.qc-studio .form-input:disabled { background: var(--qc-surface-2) !important; color: var(--qc-muted) !important; }
body.qc-studio select.form-input option,
body.qc-studio .design-select option { background: #fff !important; color: var(--qc-ink) !important; }
body.qc-studio .phone-prefix { background: var(--qc-surface-2) !important; border: 1px solid var(--qc-line-strong) !important; color: var(--qc-text) !important; }
body.qc-studio .checkbox-label { color: var(--qc-text) !important; }
body.qc-studio .checkbox-label input[type="checkbox"] { accent-color: var(--qc-violet); }
body.qc-studio .file-input-label {
    background: var(--qc-surface-2) !important;
    border: 1.5px dashed var(--qc-line-strong) !important;
    color: var(--qc-text) !important;
    border-radius: var(--qc-radius) !important;
    min-height: 52px;
}
body.qc-studio .file-input-label i { color: var(--qc-violet) !important; }
body.qc-studio .file-input-label:hover { border-color: var(--qc-violet) !important; background: var(--qc-violet-50) !important; }

/* colour themes */
body.qc-studio .color-theme-card {
    background: var(--qc-surface) !important;
    border: 1px solid var(--qc-line) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}
body.qc-studio .color-theme-card.active { border-color: var(--qc-violet) !important; box-shadow: 0 0 0 3px rgba(109, 40, 217, .12) !important; }
body.qc-studio .theme-name,
body.qc-studio .theme-name .ar,
body.qc-studio .custom-color-picker span,
body.qc-studio .custom-color-picker span .ar { color: var(--qc-text) !important; opacity: 1 !important; }
body.qc-studio .custom-colors-section { background: var(--qc-surface-2) !important; border: 1px solid var(--qc-line) !important; border-radius: 12px !important; }
body.qc-studio .theme-preview.custom-preview { background: var(--qc-surface-2) !important; color: var(--qc-violet) !important; }

/* custom links builder */
body.qc-studio .custom-link-row { background: var(--qc-surface-2) !important; border: 1px solid var(--qc-line) !important; border-radius: 12px !important; }
body.qc-studio .remove-link-btn { background: #FFF1F4 !important; color: var(--qc-danger) !important; border: 1px solid #FFD3DE !important; }
body.qc-studio .add-link-btn,
body.qc-studio .nqt-btn-add-item {
    background: var(--qc-surface) !important;
    color: var(--qc-violet) !important;
    border: 1.5px dashed var(--qc-violet-100) !important;
    border-radius: 12px !important;
    min-height: 44px;
}
body.qc-studio .add-link-btn:hover,
body.qc-studio .nqt-btn-add-item:hover { background: var(--qc-violet-50) !important; }
body.qc-studio .nqt-item-header { color: var(--qc-ink) !important; }

/* QR design panel (includes/qr_design_panel.php) on light */
body.qc-studio .qr-design-panel { background: var(--qc-surface) !important; border: 1px solid var(--qc-line) !important; border-radius: 14px !important; box-shadow: none !important; color: var(--qc-text) !important; }
body.qc-studio .qr-design-toggle { background: var(--qc-surface-2) !important; color: var(--qc-ink) !important; border: 0 !important; min-height: 52px; }
body.qc-studio .qr-design-toggle .toggle-left i { color: var(--qc-violet) !important; }
body.qc-studio .qr-design-toggle .toggle-left span,
body.qc-studio .qr-design-toggle .toggle-arrow { color: var(--qc-ink) !important; }
body.qc-studio .qr-design-body { background: var(--qc-surface) !important; color: var(--qc-text) !important; }
body.qc-studio .design-section { background: var(--qc-surface-2) !important; border: 1px solid var(--qc-line) !important; border-radius: 12px !important; }
body.qc-studio .design-section-title,
body.qc-studio .design-field label,
body.qc-studio .qr-design-preview-card h4,
body.qc-studio .design-slider-value { color: var(--qc-ink) !important; }
body.qc-studio .design-section-title i { color: var(--qc-violet) !important; }
body.qc-studio .preview-hint { color: var(--qc-muted) !important; }
body.qc-studio .qr-design-preview-card { background: var(--qc-surface-2) !important; border: 1px solid var(--qc-line) !important; }
body.qc-studio .style-option,
body.qc-studio .template-card { background: var(--qc-surface) !important; border: 1px solid var(--qc-line) !important; color: var(--qc-text) !important; }
body.qc-studio .style-option .style-label { color: var(--qc-text) !important; }
body.qc-studio .style-option.active,
body.qc-studio .template-card.active { border-color: var(--qc-violet) !important; background: var(--qc-violet-50) !important; }
body.qc-studio .style-option.active .style-label { color: var(--qc-violet-600) !important; }
body.qc-studio .logo-upload-area { background: var(--qc-surface) !important; border: 1.5px dashed var(--qc-line-strong) !important; color: var(--qc-text) !important; }
body.qc-studio .logo-upload-area i { color: var(--qc-violet) !important; }
body.qc-studio .logo-upload-area p { color: var(--qc-muted) !important; }
body.qc-studio .design-reset-btn { background: var(--qc-surface) !important; color: var(--qc-text) !important; border: 1px solid var(--qc-line-strong) !important; }

/* create button: always reachable at the bottom while filling the form */
body.qc-studio .submit-btn {
    position: sticky !important;
    bottom: 12px;
    z-index: 30;
    width: 100%;
    min-height: 54px;
    margin-top: 18px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--qc-grad) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    box-shadow: 0 14px 30px -14px rgba(138, 43, 226, .7), 0 0 0 6px var(--qc-surface) !important;
    transform: none !important;
}
body.qc-studio .submit-btn .en,
body.qc-studio .submit-btn .ar { color: #fff !important; opacity: 1 !important; }
body.qc-studio .submit-btn:focus-visible { outline: 2px solid var(--qc-ink); outline-offset: 3px; }
body.qc-studio .quick-actions { display: none !important; }

/* generic: any leftover light-on-light text inside the card */
body.qc-studio .studio-card [style*="color: rgba(255"],
body.qc-studio .studio-card [style*="color:rgba(255"],
body.qc-studio .studio-card [style*="color: #fff"],
body.qc-studio .studio-card [style*="color:#fff"],
body.qc-studio .studio-card [style*="color: white"] { color: var(--qc-text) !important; }

@media (max-width: 640px) {
    body.qc-studio .studio-container { padding: 12px 12px 110px !important; }
    body.qc-studio .page-title h1 { font-size: 1.3rem !important; }
    body.qc-studio .stat-card { padding: 4px 10px 4px 4px !important; }
    body.qc-studio .stat-info p { display: none !important; }
    body.qc-studio .stat-info h3::after { content: ""; }
    body.qc-studio .qr-type-selector { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; }
    body.qc-studio .qr-type-card,
    body.qc-studio .qc-more-types { padding: 10px 4px 9px !important; gap: 6px; border-radius: 12px !important; }
    body.qc-studio .qr-type-icon,
    body.qc-studio .qc-more-types .qc-more-ico { width: 36px !important; height: 36px !important; border-radius: 10px !important; }
    body.qc-studio .qr-type-card h4,
    body.qc-studio .qc-more-types { font-size: .72rem !important; }
    body.qc-studio .studio-card { padding: 2px 14px 16px !important; border-radius: 16px !important; }
    body.qc-studio .form-row { grid-template-columns: 1fr !important; display: grid !important; gap: 0 !important; }
    body.qc-studio .submit-btn { bottom: 10px; min-height: 52px; }
}
@media (max-width: 360px) {
    body.qc-studio .qr-type-selector { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* type tile icons (line icons, drawn with currentColor through a mask) */
body.qc-studio .qr-type-card[data-type="landing_page"] { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='M6.2 15a3 3 0 0 1 5.6 0'/%3E%3Cpath d='M15 10h3'/%3E%3Cpath d='M15 14h3'/%3E%3C/svg%3E"); }
body.qc-studio .qr-type-card[data-type="url"] { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E"); }
body.qc-studio .qr-type-card[data-type="wifi"] { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h.01'/%3E%3Cpath d='M2 8.82a15 15 0 0 1 20 0'/%3E%3Cpath d='M5 12.86a10 10 0 0 1 14 0'/%3E%3Cpath d='M8.5 16.43a5 5 0 0 1 7 0'/%3E%3C/svg%3E"); }
body.qc-studio .qr-type-card[data-type="vcard"] { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3Cpath d='M7 21v-1.5A3.5 3.5 0 0 1 10.5 16h3a3.5 3.5 0 0 1 3.5 3.5V21'/%3E%3C/svg%3E"); }
body.qc-studio .qr-type-card[data-type="sms"] { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3Cpath d='M8 9h8'/%3E%3Cpath d='M8 13h5'/%3E%3C/svg%3E"); }
body.qc-studio .qr-type-card[data-type="email"] { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E"); }
body.qc-studio .qr-type-card[data-type="calendar"] { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4'/%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M8 14h.01'/%3E%3Cpath d='M12 14h.01'/%3E%3Cpath d='M16 14h.01'/%3E%3C/svg%3E"); }
body.qc-studio .qr-type-card[data-type="pdf"] { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E"); }
body.qc-studio .qr-type-card[data-type="menu"] { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2'/%3E%3Cpath d='M7 2v20'/%3E%3Cpath d='M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3zm0 0v7'/%3E%3C/svg%3E"); }
body.qc-studio .qr-type-card[data-type="app_store"] { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cpath d='M12 18h.01'/%3E%3C/svg%3E"); }
body.qc-studio .qr-type-card[data-type="google_review"] { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.52 2.3a.53.53 0 0 1 .95 0l2.31 4.68a2.12 2.12 0 0 0 1.6 1.16l5.16.76a.53.53 0 0 1 .3.9l-3.74 3.64a2.12 2.12 0 0 0-.61 1.88l.88 5.14a.53.53 0 0 1-.77.56l-4.62-2.43a2.12 2.12 0 0 0-1.97 0L6.4 21.01a.53.53 0 0 1-.77-.56l.88-5.14a2.12 2.12 0 0 0-.61-1.88L2.16 9.8a.53.53 0 0 1 .3-.91l5.16-.75a2.12 2.12 0 0 0 1.6-1.16z'/%3E%3C/svg%3E"); }
body.qc-studio .qr-type-card[data-type="multi_link"] { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z'/%3E%3Cpath d='m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65'/%3E%3Cpath d='m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65'/%3E%3C/svg%3E"); }
body.qc-studio .qr-type-card[data-type="social_aggregator"] { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.59 13.51 6.83 3.98'/%3E%3Cpath d='m15.41 6.51-6.82 3.98'/%3E%3C/svg%3E"); }
body.qc-studio .qr-type-card[data-type="coupon"] { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2z'/%3E%3Cpath d='M13 5v2'/%3E%3Cpath d='M13 17v2'/%3E%3Cpath d='M13 11v2'/%3E%3C/svg%3E"); }
body.qc-studio .qr-type-card[data-type="video"] { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 13 5.22 3.48a.5.5 0 0 0 .78-.42V7.87a.5.5 0 0 0-.75-.43L16 10.5'/%3E%3Crect x='2' y='6' width='14' height='12' rx='2'/%3E%3C/svg%3E"); }
body.qc-studio .qr-type-card[data-type="file_download"] { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M12 15V3'/%3E%3C/svg%3E"); }
body.qc-studio .qr-type-card[data-type="product_catalog"] { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
body.qc-auth .auth-card > .qc-lang-mount { position: absolute; top: 14px; right: 14px; z-index: 2; }
html[data-qc-lang="ar"] body.qc-auth .auth-card > .qc-lang-mount { right: auto; left: 14px; }
body.qc-auth .auth-card { padding-top: 58px !important; }
