/* =========================================================
   تيكو عرب — التصميم الأساسي (النسخة الكاملة المُصلحة)
   ========================================================= */

:root {
    --primary: 0 84% 50%;
    --primary-glow: 0 84% 60%;
    --secondary: 142 76% 40%;
    --secondary-glow: 142 76% 50%;
    --accent: 43 96% 56%;
    --accent-dark: 38 92% 50%;

    --bg: 0 0% 100%;
    --fg: 222 47% 11%;
    --card-bg: 0 0% 100%;
    --muted: 0 0% 96%;
    --muted-fg: 222 47% 40%;
    --border: 0 0% 90%;
    --input: 0 0% 90%;

    --gradient-primary: linear-gradient(135deg, hsl(0 84% 50%), hsl(0 84% 60%));
    --gradient-secondary: linear-gradient(135deg, hsl(142 76% 40%), hsl(142 76% 50%));
    --gradient-accent: linear-gradient(135deg, hsl(43 96% 56%), hsl(38 92% 50%));
    --gradient-hero: linear-gradient(135deg, hsl(0 84% 50%) 0%, hsl(322 84% 45%) 100%);

    --shadow-card: 0 2px 8px hsla(222, 47%, 11%, 0.08);
    --shadow-lg: 0 10px 40px -10px hsla(0, 0%, 0%, 0.15);
    --shadow-xl: 0 20px 60px -15px hsla(0, 0%, 0%, 0.3);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --header-top-h: 0px;
    --header-main-h: 4rem;
    --header-total: 4rem;
}

.dark {
    --bg: 222 47% 7%;
    --fg: 0 0% 98%;
    --card-bg: 222 40% 10%;
    --muted: 222 30% 15%;
    --muted-fg: 0 0% 70%;
    --border: 222 30% 18%;
    --input: 222 30% 15%;
    --shadow-card: 0 4px 16px hsla(0, 0%, 0%, 0.4);
    --shadow-lg: 0 10px 40px -10px hsla(0, 0%, 0%, 0.6);
}

@media (min-width: 768px) {
    :root {
        --header-top-h: 2.5rem;
        --header-main-h: 5rem;
        --header-total: 7.5rem;
    }
}

/* =========================================================
   الأساسيات
   ========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-total) + 1rem);
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: hsl(var(--bg));
    color: hsl(var(--fg));
    direction: rtl;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.3; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

main {
    padding-top: var(--header-total);
    min-height: 60vh;
    overflow-x: hidden;
}

/* =========================================================
   الحاويات
   ========================================================= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; width: 100%; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 1rem; width: 100%; }
.container-lg { max-width: 1440px; margin: 0 auto; padding: 0 1rem; width: 100%; }

/* =========================================================
   الهيدر
   ========================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: hsl(var(--bg));
    border-bottom: 1px solid hsl(var(--border));
    box-shadow: 0 2px 12px hsla(0, 0%, 0%, 0.06);
}

.header-top {
    display: none;
    background-color: hsl(var(--muted));
    border-bottom: 1px solid hsl(var(--border));
    height: 2.5rem;
}

@media (min-width: 768px) {
    .header-top { display: block; }
}

.header-top-inner {
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-top-socials {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-top-social {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: hsl(var(--card-bg));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9375rem;
    line-height: 1;
    text-decoration: none;
    border: 1px solid hsl(var(--border));
}

.header-top-social i {
    font-size: 0.9375rem;
    line-height: 1;
    transition: color 0.2s;
}

.header-top-social:hover {
    transform: translateY(-2px);
    border-color: transparent;
    color: white !important;
}

.header-top-social:hover i { color: white !important; }

.header-top-social[data-brand="youtube"]:hover { background-color: #FF0000; }
.header-top-social[data-brand="instagram"]:hover { background-color: #E4405F; }
.header-top-social[data-brand="facebook"]:hover { background-color: #1877F2; }
.header-top-social[data-brand="x"]:hover { background-color: #000000; }
.header-top-social[data-brand="tiktok"]:hover { background-color: #000000; }
.header-top-social[data-brand="linkedin"]:hover { background-color: #0A66C2; }
.header-top-social[data-brand="github"]:hover { background-color: #181717; }
.header-top-social[data-brand="whatsapp"]:hover { background-color: #25D366; }

.header-top-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: hsl(var(--muted-fg));
}

.header-top-links a {
    transition: color 0.2s;
    font-weight: 500;
}

.header-top-links a:hover { color: hsl(var(--primary)); }
.header-top-links a.active { color: hsl(var(--primary)); font-weight: 700; }

.header-top-email {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.header-top-email i { font-size: 0.8125rem; }

.header-main-bar { background-color: hsl(var(--bg)); }

.header-main {
    height: var(--header-main-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-shrink: 0;
}

.header-logo-img {
    width: 3.5rem;
    height: 3.5rem;
    transition: transform 0.3s;
    object-fit: contain;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .header-logo-img { width: 4rem; height: 4rem; }
}

.header-logo:hover .header-logo-img { transform: scale(1.08); }

.header-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-logo-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: hsl(var(--fg));
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .header-logo-name { font-size: 1.75rem; }
}

.header-logo-tagline {
    font-size: 0.75rem;
    color: hsl(var(--muted-fg));
    font-weight: 600;
}

@media (max-width: 500px) {
    .header-logo-tagline { display: none; }
    .header-logo-name { font-size: 1.125rem; }
    .header-logo-img { width: 2.75rem; height: 2.75rem; }
}

.header-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 1024px) {
    .header-nav { display: flex; }
}

.header-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: hsl(var(--fg));
    transition: color 0.2s;
    white-space: nowrap;
    border-radius: 0.5rem;
    text-decoration: none;
}

.header-nav-link i,
.header-nav-link svg {
    font-size: 1rem;
    width: 0.9375rem;
    height: 0.9375rem;
    flex-shrink: 0;
    transition: color 0.2s;
}

.header-nav-link:hover { color: hsl(var(--primary)); }
.header-nav-link:hover i,
.header-nav-link:hover svg { color: hsl(var(--primary)); }

.header-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.1875rem;
    left: 0.875rem;
    right: 0.875rem;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 9999px;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.header-nav-link:hover::after,
.header-nav-link.active::after { transform: scaleX(1); }
.header-nav-link.active { color: hsl(var(--primary)); }
.header-nav-link.active i,
.header-nav-link.active svg { color: hsl(var(--primary)); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: hsl(var(--fg));
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
}

.icon-btn:hover {
    background-color: hsl(var(--muted));
    border-color: hsl(var(--border));
}

.icon-btn i,
.icon-btn svg {
    font-size: 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
}

/* Lang dropdown */
.lang-wrapper { position: relative; }

.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--fg));
    transition: var(--transition);
    cursor: pointer;
}

.lang-trigger:hover {
    background-color: hsl(var(--muted));
    border-color: hsl(var(--primary) / 0.4);
}

.lang-trigger i,
.lang-trigger svg { font-size: 1rem; width: 1rem; height: 1rem; }

.lang-label { display: none; }
@media (min-width: 640px) { .lang-label { display: inline; } }

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    inset-inline-start: 0;
    min-width: 10rem;
    background-color: hsl(var(--card-bg));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    padding: 0.375rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: var(--transition);
    z-index: 110;
}

.lang-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: hsl(var(--fg));
    transition: background-color 0.15s;
    text-align: right;
    cursor: pointer;
    background: transparent;
    border: none;
}

.lang-option:hover { background-color: hsl(var(--muted)); }
.lang-option.active { background-color: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }

.lang-flag { font-size: 1rem; line-height: 1; }

.mobile-menu-btn { display: inline-flex; }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

/* =========================================================
   الشريط الجانبي للموبايل
   ========================================================= */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 200;
}
.sidebar-backdrop.open { opacity: 1; visibility: visible; }

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(340px, 88vw);
    background-color: hsl(var(--card-bg));
    z-index: 210;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-inline-start: 1px solid hsl(var(--border));
    box-shadow: -20px 0 60px -20px rgba(0,0,0,0.3);
}

html[dir="ltr"] .sidebar { right: auto; left: 0; transform: translateX(-100%); border-inline-start: none; border-inline-end: 1px solid hsl(var(--border)); }
html[dir="ltr"] .sidebar.open { transform: translateX(0); }

.sidebar.open { transform: translateX(0); }

.sidebar-header {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid hsl(var(--border));
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-logo img {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
}

.sidebar-logo-text {
    font-size: 1.125rem;
    font-weight: 900;
}

.sidebar-close {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.sidebar-close:hover { background-color: hsl(var(--muted)); }

.sidebar-nav {
    flex: 1;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: hsl(var(--fg));
    transition: var(--transition);
    border-inline-end: 3px solid transparent;
}

.sidebar-link:hover { background-color: hsl(var(--muted)); }

.sidebar-link.active {
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border-inline-end-color: hsl(var(--primary));
}

.sidebar-link svg,
.sidebar-link i {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid hsl(var(--border));
}

.sidebar-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.sidebar-socials a {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background-color: hsl(var(--muted));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.875rem;
}

.sidebar-socials a:hover {
    color: white;
    transform: translateY(-2px);
}

.sidebar-email {
    font-size: 0.75rem;
    color: hsl(var(--muted-fg));
    text-align: center;
    word-break: break-all;
}

/* =========================================================
   الفوتر
   ========================================================= */
.site-footer {
    background-color: hsl(var(--muted));
    border-top: 1px solid hsl(var(--border));
    padding: 3rem 0 0;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr 1.2fr; gap: 2.5rem; }
}

.footer-col h3 {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    transition: transform 0.3s;
}

.footer-brand:hover img { transform: scale(1.08); }

.footer-brand-text {
    font-size: 1.375rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.footer-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-fg));
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    font-size: 0.875rem;
    color: hsl(var(--muted-fg));
    transition: color 0.2s;
    display: inline-block;
}

.footer-link:hover { color: hsl(var(--primary)); }
.footer-link.active { color: hsl(var(--primary)); font-weight: 700; }
.footer-link.sub { padding-inline-start: 0.75rem; font-size: 0.8125rem; }

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: hsl(var(--muted-fg));
    margin-bottom: 0.875rem;
    transition: color 0.2s;
    word-break: break-all;
}

.footer-contact-item:hover { color: hsl(var(--primary)); }

.footer-contact-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.footer-contact-item:hover .footer-contact-icon {
    background-color: hsl(var(--primary));
    color: white;
}

.footer-contact-icon svg,
.footer-contact-icon i { width: 1rem; height: 1rem; }

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.footer-social {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background-color: hsl(var(--card-bg));
    border: 1px solid hsl(var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.875rem;
}

.footer-social:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: hsl(var(--primary) / 0.4);
    color: white;
}

.footer-bottom {
    border-top: 1px solid hsl(var(--border));
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.8125rem;
    color: hsl(var(--muted-fg));
}

/* =========================================================
   التدرجات النصية
   ========================================================= */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.text-gradient-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.text-gradient-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.gradient-primary { background: var(--gradient-primary); }
.gradient-secondary { background: var(--gradient-secondary); }
.gradient-accent { background: var(--gradient-accent); }
.gradient-hero { background: var(--gradient-hero); }

/* =========================================================
   التوهج
   ========================================================= */
.radial-glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.3;
}

/* =========================================================
   الأزرار
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
}

.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary { background: var(--gradient-primary); color: white; box-shadow: 0 4px 14px hsla(0,84%,50%,0.3); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 30px -10px hsla(0,84%,50%,0.6); transform: translateY(-2px); }

.btn-secondary { background: var(--gradient-secondary); color: white; box-shadow: 0 4px 14px hsla(142,76%,40%,0.3); }
.btn-secondary:hover:not(:disabled) { box-shadow: 0 10px 30px -10px hsla(142,76%,40%,0.6); transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--fg));
}
.btn-outline:hover:not(:disabled) { background: hsl(var(--muted)); }

.btn-ghost { background: transparent; color: hsl(var(--fg)); }
.btn-ghost:hover:not(:disabled) { background: hsl(var(--muted)); }

/* =========================================================
   البطاقات
   ========================================================= */
.card {
    background: hsl(var(--card-bg));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    transition: var(--transition);
}
.card-hover:hover {
    border-color: hsla(0, 84%, 50%, 0.4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* =========================================================
   الشارات
   ========================================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}
.badge-emerald { background: hsl(160 84% 39%); color: white; }
.badge-amber { background: hsl(38 92% 50%); color: white; }
.badge-muted { background: hsla(222, 47%, 40%, 0.5); color: white; }
.badge-primary { background: hsla(0, 84%, 50%, 0.15); color: hsl(0 84% 45%); border: 1px solid hsla(0, 84%, 50%, 0.3); }
.dark .badge-primary { color: hsl(0 84% 65%); }
.badge-secondary { background: hsla(142, 76%, 40%, 0.15); color: hsl(142 76% 35%); border: 1px solid hsla(142, 76%, 40%, 0.3); }
.dark .badge-secondary { color: hsl(142 76% 60%); }
.badge-accent { background: hsla(43, 96%, 56%, 0.15); color: hsl(43 96% 40%); border: 1px solid hsla(43, 96%, 56%, 0.3); }
.dark .badge-accent { color: hsl(43 96% 65%); }

/* =========================================================
   الحقول
   ========================================================= */
.input, .textarea, select.input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--input));
    border-radius: 0.75rem;
    background: hsl(var(--bg));
    color: hsl(var(--fg));
    font-size: 0.9375rem;
    font-family: inherit;
    transition: var(--transition);
}
.input:focus, .textarea:focus, select.input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsla(0, 84%, 50%, 0.15);
}
.textarea { resize: vertical; min-height: 140px; }

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: hsl(var(--fg));
}
label .required { color: hsl(0 84% 50%); }

/* =========================================================
   التنبيهات
   ========================================================= */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    inset-inline-start: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 24rem;
    pointer-events: none;
}
.toast {
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.4);
    animation: slideUp 0.4s ease-out;
    pointer-events: auto;
}
.toast-success { background: hsl(160 84% 39%); }
.toast-error { background: hsl(0 84% 50%); }
.toast-info { background: hsl(222 47% 20%); }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease-out;
}
.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

/* =========================================================
   الأكورديون
   ========================================================= */
.accordion-item {
    border-bottom: 1px solid hsl(var(--border));
}
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
    transition: color 0.2s;
}
.accordion-trigger:hover { color: hsl(var(--primary)); }
.accordion-content {
    padding-bottom: 1rem;
    color: hsl(var(--muted-fg));
    font-size: 0.9375rem;
    line-height: 1.9;
}

/* =========================================================
   الأقسام
   ========================================================= */
.section { padding: 4rem 0; }
@media (max-width: 768px) { .section { padding: 2.5rem 0; } }

.link-primary { color: hsl(var(--primary)); font-weight: 700; }
.link-primary:hover { text-decoration: underline; }

.top-stripe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to left, transparent, hsl(var(--secondary)), transparent);
}

.prose-ar { line-height: 1.9; font-size: 1rem; color: hsl(var(--muted-fg)); }
.prose-ar p { margin-bottom: 1rem; }
.prose-ar strong { color: hsl(var(--fg)); font-weight: 700; }

/* =========================================================
   الشبكات
   ========================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1rem; }

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   النصوص
   ========================================================= */
.text-center { text-align: center; }
.text-muted { color: hsl(var(--muted-fg)); }
.text-foreground { color: hsl(var(--fg)); }

input[type="email"], input[type="tel"] { direction: ltr; text-align: left; }

/* =========================================================
   Animations
   ========================================================= */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes heroSlowZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes apkPulse {
    0%   { box-shadow: 0 0 0 0 hsla(160,84%,39%,0.45); }
    70%  { box-shadow: 0 0 0 14px hsla(160,84%,39%,0); }
    100% { box-shadow: 0 0 0 0 hsla(160,84%,39%,0); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-fade-in { animation: fadeIn 0.6s ease-out; }
.animate-slide-up { animation: slideUp 0.5s ease-out; }
.animate-spin { animation: spin 1s linear infinite; }

/* =========================================================
   Scrollbar
   ========================================================= */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: hsl(0 0% 80%); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: hsl(0 0% 65%); }
.dark ::-webkit-scrollbar-thumb { background: hsl(222 30% 25%); }
.dark ::-webkit-scrollbar-thumb:hover { background: hsl(222 30% 35%); }

/* =========================================================
   Focus
   ========================================================= */
*:focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
    border-radius: 0.375rem;
}

/* =========================================================
   أيقونة القمر/الشمس
   ========================================================= */
.theme-sun { display: none; }
.dark .theme-sun { display: inline-block; color: hsl(43 96% 60%); }
.dark .theme-moon { display: none; }

/* =========================================================
   Logo fallback
   ========================================================= */
.logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-weight: 900;
    border-radius: 0.75rem;
    font-family: 'Cairo', sans-serif;
    flex-shrink: 0;
}

/* =========================================================
   Tico Code Page
   ========================================================= */
.tcode-hero { display: flex; flex-direction: column; gap: 2rem; }
.tcode-hero-logo-wrap { display: flex; justify-content: center; }
.tcode-hero-logo {
    width: 14rem;
    height: 14rem;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 4px solid hsla(142,76%,40%,0.3);
    background: linear-gradient(135deg, hsla(142,76%,40%,0.2), hsla(43,96%,56%,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}
.tcode-hero-logo img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.tcode-hero-info { text-align: center; }

@media (min-width: 768px) {
    .tcode-hero { flex-direction: row; align-items: flex-start; }
    .tcode-hero-logo-wrap { order: 2; justify-content: flex-end; width: 33%; }
    .tcode-hero-info { width: 67%; text-align: right; }
    .tcode-hero-logo { width: 18rem; height: 18rem; }
}

.tcode-badge-emerald {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid hsla(160,84%,39%,0.4);
    background: hsla(160,84%,39%,0.1);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: hsl(160 84% 35%);
    margin-bottom: 1rem;
}

.tcode-quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid hsl(var(--border));
    background: hsl(var(--muted));
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}
.tcode-quick-chip svg { width: 1rem; height: 1rem; }
.tcode-quick-chip--emerald {
    border-color: hsla(160,84%,39%,0.3);
    background: hsla(160,84%,39%,0.05);
    font-weight: 700;
}

.tcode-launch-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: hsla(0,84%,50%,0.1);
    border: 1px solid hsla(0,84%,50%,0.3);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}
.tcode-launch-badge svg { width: 1rem; height: 1rem; }
.tcode-launch-badge span { font-size: 0.875rem; font-weight: 700; color: hsl(0 84% 50%); }

.tcode-section-head { text-align: center; margin-bottom: 2.5rem; }

.tcode-feature-card { position: relative; padding: 1.5rem; }
.tcode-feature-card--apk {
    border-color: hsla(160,84%,39%,0.4);
    background: hsla(160,84%,39%,0.05);
}
.tcode-feature-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: hsl(160 84% 39%);
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}
.tcode-feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.tcode-feature-icon svg,
.tcode-feature-icon i { width: 1.5rem; height: 1.5rem; }
.tcode-feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: hsl(var(--fg));
}
.tcode-feature-card p {
    font-size: 0.875rem;
    color: hsl(var(--muted-fg));
    line-height: 1.7;
}

.tcode-diff-card { padding: 1.5rem; text-align: center; }
.tcode-diff-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: hsla(0,84%,50%,0.1);
    color: hsl(0 84% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.tcode-diff-icon svg,
.tcode-diff-icon i { width: 1.75rem; height: 1.75rem; }
.tcode-diff-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.tcode-diff-card p { font-size: 0.75rem; color: hsl(var(--muted-fg)); line-height: 1.7; }

.tcode-user-card { padding: 1.5rem; }
.tcode-user-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.tcode-user-icon svg,
.tcode-user-icon i { width: 1.75rem; height: 1.75rem; }
.tcode-user-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.tcode-user-card p { font-size: 0.875rem; color: hsl(var(--muted-fg)); line-height: 1.7; }

.tcode-step-card { position: relative; padding: 1.5rem; text-align: center; }
.tcode-step-num {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 900;
}
.tcode-step-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.tcode-step-card p { font-size: 0.875rem; color: hsl(var(--muted-fg)); line-height: 1.7; }

.tcode-final-cta {
    position: relative;
    background: linear-gradient(135deg, hsla(160,84%,39%,0.15), hsl(var(--card-bg)), hsla(142,76%,40%,0.1));
    border: 2px solid hsla(160,84%,39%,0.3);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    overflow: hidden;
}
.tcode-final-cta-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: hsl(160 84% 39%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 20px 40px -15px hsla(160,84%,39%,0.5);
}

/* =========================================================
   Arab Island Page
   ========================================================= */
.ai-status-bar {
    background: linear-gradient(to right, hsl(38 92% 50%), hsl(24 95% 53%));
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px -10px hsla(38,92%,50%,0.4);
    margin-bottom: 1rem;
}

.ai-hero { display: flex; flex-direction: column; gap: 2rem; }
.ai-hero-logo-wrap { display: flex; justify-content: center; }
.ai-hero-logo {
    width: 14rem;
    height: 14rem;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 4px solid hsla(142,76%,40%,0.3);
    background: linear-gradient(135deg, hsla(142,76%,40%,0.2), hsla(43,96%,56%,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-hero-logo img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.ai-hero-info { text-align: center; }

@media (min-width: 768px) {
    .ai-hero { flex-direction: row; align-items: flex-start; }
    .ai-hero-logo-wrap { order: 2; justify-content: flex-end; width: 33%; }
    .ai-hero-info { width: 67%; text-align: right; }
    .ai-hero-logo { width: 18rem; height: 18rem; }
}

.ai-badge-amber {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid hsla(38,92%,50%,0.4);
    background: hsla(38,92%,50%,0.1);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: hsl(38 92% 45%);
    margin-bottom: 1rem;
}

.ai-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid hsl(var(--border));
    background: hsl(var(--muted));
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}
.ai-chip svg { width: 1rem; height: 1rem; }

.ai-feature-card { padding: 1.5rem; text-align: center; }
.ai-feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: hsla(0,84%,50%,0.1);
    color: hsl(0 84% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.ai-feature-icon svg { width: 1.75rem; height: 1.75rem; }
.ai-feature-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.ai-feature-card p { font-size: 0.875rem; color: hsl(var(--muted-fg)); line-height: 1.7; }

.ai-final-cta {
    position: relative;
    background: linear-gradient(135deg, hsla(142,76%,40%,0.15), hsl(var(--card-bg)), hsla(43,96%,56%,0.1));
    border: 2px solid hsla(142,76%,40%,0.3);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    overflow: hidden;
}

/* =========================================================
   Tico OS Page
   ========================================================= */
.os-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .os-hero { grid-template-columns: 1fr 1fr; }
}

.os-hero-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.os-hero-logo {
    width: 100%;
    max-width: 20rem;
    aspect-ratio: 1/1;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 4px solid hsla(0,84%,50%,0.3);
    background: linear-gradient(135deg, hsla(0,84%,50%,0.2), hsla(43,96%,56%,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}
.os-hero-logo img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; }

.os-badge-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid hsl(var(--border));
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.os-info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.os-info-card {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    background: hsl(var(--card-bg));
    border: 1px solid hsl(var(--border));
}
.os-info-label { font-size: 0.75rem; color: hsl(var(--muted-fg)); display: block; }
.os-info-value { font-weight: 700; font-size: 0.875rem; }

.os-platforms { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.os-platform {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}
.os-platform svg,
.os-platform i { width: 1rem; height: 1rem; }
.os-platform--primary {
    background: hsla(0,84%,50%,0.1);
    border: 1px solid hsla(0,84%,50%,0.2);
    color: hsl(0 84% 45%);
}
.os-platform--accent {
    background: hsla(43,96%,56%,0.1);
    border: 1px solid hsla(43,96%,56%,0.2);
    color: hsl(43 96% 45%);
}

.os-feature-card { padding: 1.5rem; text-align: center; }
.os-feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.os-feature-icon svg,
.os-feature-icon i { width: 1.75rem; height: 1.75rem; }
.os-feature-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.os-feature-card p { font-size: 0.875rem; color: hsl(var(--muted-fg)); line-height: 1.7; }

.os-version-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid hsl(var(--border));
}
.os-version-header {
    background: hsl(var(--muted));
    font-size: 0.875rem;
    font-weight: 600;
    border-top: none;
}
.os-version-info { display: flex; align-items: center; gap: 0.75rem; }
.os-version-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: hsl(var(--card-bg));
    border: 1px solid hsl(var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.os-version-name { font-weight: 700; font-size: 0.875rem; display: block; }
.os-version-desc { font-size: 0.75rem; color: hsl(var(--muted-fg)); display: block; }
.os-col-type { font-size: 0.875rem; color: hsl(var(--muted-fg)); }
.os-version-status { text-align: left; }

@media (max-width: 768px) {
    .os-version-row { grid-template-columns: 1fr auto; }
    .os-col-type { display: none; }
}

/* =========================================================
   Home Hero
   ========================================================= */
.home-hero-bg-img {
    opacity: 0.4;
    animation: heroSlowZoom 30s ease-in-out infinite alternate;
    transform-origin: center center;
}
.dark .home-hero-bg-img { opacity: 0.25; }

@media (prefers-reduced-motion: reduce) {
    .home-hero-bg-img { animation: none; }
}

/* =========================================================
   Dark mode icons fixes
   ========================================================= */
.dark .gradient-primary,
.dark .gradient-secondary,
.dark .gradient-accent {
    box-shadow: 0 0 0 1px hsla(0,0%,100%,0.08) inset;
}

.dark .os-feature-icon,
.dark .ai-feature-icon,
.dark .tcode-feature-icon,
.dark .tcode-diff-icon,
.dark .tcode-user-icon {
    box-shadow: 0 0 0 1px hsla(0,0%,100%,0.05) inset;
}

/* =========================================================
   APK highlights
   ========================================================= */
.apk-pulse {
    position: relative;
    animation: apkPulse 2.5s ease-in-out infinite;
    border-color: hsla(160,84%,39%,0.6);
}

.apk-badge-float {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, hsl(160 84% 39%), hsl(160 84% 45%));
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 900;
    box-shadow: 0 6px 16px -6px hsla(160,84%,39%,0.6);
    letter-spacing: 0.02em;
}

.apk-feature-block {
    position: relative;
    background: linear-gradient(135deg, hsla(160,84%,39%,0.12), hsl(var(--card-bg)) 60%);
    border: 2px solid hsla(160,84%,39%,0.35);
    border-radius: 1.5rem;
    padding: 2rem 2.5rem;
    overflow: hidden;
}
.dark .apk-feature-block {
    background: linear-gradient(135deg, hsla(160,84%,39%,0.15), hsl(var(--card-bg)) 60%);
}
.apk-feature-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to left, transparent, hsl(160 84% 39%), transparent);
}

.tcode-apk-wrap {
    position: relative;
    background: linear-gradient(135deg, hsla(160,84%,39%,0.1), hsl(var(--card-bg)), hsla(43,96%,56%,0.05));
    border: 2px solid hsla(160,84%,39%,0.4);
    border-radius: 1.5rem;
    padding: 2.5rem 3rem;
    overflow: hidden;
}
.tcode-apk-stripe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to left, transparent, hsl(160 84% 39%), transparent);
}
.tcode-apk-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
}
@media (min-width: 1024px) {
    .tcode-apk-grid { grid-template-columns: 1fr 1fr; }
}
.tcode-apk-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: hsl(160 84% 39%);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 20px -5px hsla(160,84%,39%,0.4);
}
.tcode-apk-features { list-style: none; padding: 0; margin: 0 0 2rem 0; }
.tcode-apk-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}
.tcode-apk-features li svg,
.tcode-apk-features li i {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(160 84% 39%);
    flex-shrink: 0;
    margin-top: 0.125rem;
}
.tcode-apk-features li span { color: hsl(var(--muted-fg)); font-weight: 500; }
.tcode-apk-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.tcode-apk-step {
    position: relative;
    background: hsl(var(--card-bg));
    border: 2px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
}
.tcode-apk-step-num {
    position: absolute;
    top: -0.75rem;
    inset-inline-end: -0.75rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: hsl(160 84% 39%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    box-shadow: 0 10px 20px -5px hsla(160,84%,39%,0.5);
}
.tcode-apk-step-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}
.tcode-apk-step-icon svg,
.tcode-apk-step-icon i { width: 1.75rem; height: 1.75rem; }
.tcode-apk-step p { font-size: 0.75rem; font-weight: 700; color: hsl(var(--fg)); }

/* =========================================================
   Contact Page Fixes
   ========================================================= */
.contact-grid { display: block; }
@media (max-width: 767px) {
    .contact-grid { display: block; }
    .contact-grid > * { width: 100%; margin-bottom: 1.5rem; }
    .contact-grid > *:last-child { margin-bottom: 0; }

    #contact-form input,
    #contact-form textarea,
    #contact-form select {
        font-size: 16px;
        min-height: 44px;
    }

    .contact-social-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
    }
    .contact-social-grid a {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
        min-width: 0;
        overflow: hidden;
    }
    .contact-social-grid a i { font-size: 1.125rem; }

    .contact-card-email {
        word-break: break-all;
        overflow-wrap: anywhere;
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

/* =========================================================
   About APK Card
   ========================================================= */
.about-apk-card {
    position: relative;
    background: linear-gradient(135deg, hsla(160,84%,39%,0.08), hsl(var(--card-bg)) 70%);
    border: 2px solid hsla(160,84%,39%,0.35);
    border-radius: 1.25rem;
    padding: 1.75rem;
    overflow: hidden;
}
.about-apk-card::after {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(160,84%,39%,0.25), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

/* =========================================================
   Services Big Icon
   ========================================================= */
.svc-big-icon {
    width: 9rem;
    height: 9rem;
    transform: scale(1.15);
    transition: transform 0.4s ease;
}
.svc-card:hover .svc-big-icon {
    transform: scale(1.28) rotate(-2deg);
}

/* =========================================================
   Contact page overrides
   ========================================================= */
.ct-hero {
    padding: 2.5rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ct-hero h1 {
    font-size: clamp(2rem, 7vw, 3.75rem);
    font-weight: 900;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}
.ct-hero p {
    font-size: clamp(1rem, 3.5vw, 1.125rem);
    color: hsl(var(--muted-fg));
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.8;
    padding: 0 0.5rem;
}

.ct-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.875rem 3rem;
    width: 100%;
}

.ct-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
    width: 100%;
}
@media (min-width: 1024px) {
    .ct-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: 1.75rem;
    }
    .ct-wrap { padding: 0 1.25rem 4rem; }
}

.ct-card {
    background: hsl(var(--card-bg));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.25rem;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}
@media (min-width: 640px) {
    .ct-card { padding: 1.75rem; }
}

.ct-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.ct-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    min-width: 0;
}
.ct-head-icon {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.25rem;
}
.ct-head-body { min-width: 0; flex: 1; }
.ct-head-title {
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.25;
    margin: 0;
    word-wrap: break-word;
}
.ct-head-sub {
    font-size: 0.8125rem;
    color: hsl(var(--muted-fg));
    margin: 0.125rem 0 0;
    line-height: 1.4;
}

.ct-form { display: flex; flex-direction: column; gap: 1.125rem; width: 100%; }
.ct-field { display: flex; flex-direction: column; width: 100%; min-width: 0; }
.ct-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: hsl(var(--fg));
    line-height: 1.4;
}
.ct-field label .req { color: hsl(0 84% 50%); }
.ct-field label .opt { color: hsl(var(--muted-fg)); font-size: 0.75rem; font-weight: 400; }
.ct-input,
.ct-textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 0.875rem;
    font-size: 16px;
    line-height: 1.5;
    border: 1px solid hsl(var(--input));
    border-radius: 0.75rem;
    background: hsl(var(--bg));
    color: hsl(var(--fg));
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.ct-input:focus,
.ct-textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsla(0, 84%, 50%, 0.15);
}
.ct-textarea {
    min-height: 130px;
    resize: vertical;
    padding-top: 0.875rem;
}
input[type="email"].ct-input,
input[type="tel"].ct-input { direction: ltr; text-align: left; }
.ct-char {
    font-size: 0.75rem;
    color: hsl(var(--muted-fg));
    margin-top: 0.35rem;
    text-align: left;
    line-height: 1;
}

.ct-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 0.75rem;
    background: var(--gradient-primary);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px hsla(0, 84%, 50%, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.ct-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px hsla(0, 84%, 50%, 0.6);
}
.ct-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.ct-privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-fg));
    text-align: center;
    padding-top: 0.5rem;
    line-height: 1.4;
    flex-wrap: wrap;
}
.ct-privacy-note i { color: hsl(160 84% 39%); }

.ct-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ct-location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: hsl(var(--muted));
    border-radius: 0.75rem;
    min-width: 0;
}
.ct-location-icon {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    font-size: 1.25rem;
}
.ct-location-body { min-width: 0; flex: 1; }
.ct-location-country { font-size: 1rem; font-weight: 900; margin: 0; line-height: 1.3; }
.ct-location-city { font-size: 0.8125rem; color: hsl(var(--muted-fg)); margin: 0.125rem 0 0; line-height: 1.4; }

.ct-email-list { display: flex; flex-direction: column; gap: 0.625rem; }
.ct-email-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: hsl(var(--muted));
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    text-decoration: none;
    color: inherit;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.ct-email-row:hover { background: hsl(var(--muted) / 0.7); }
.ct-email-icon {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
}
.ct-email-body { flex: 1; min-width: 0; overflow: hidden; }
.ct-email-addr {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: hsl(var(--fg));
    word-break: break-all;
    overflow-wrap: anywhere;
    line-height: 1.3;
}
.ct-email-desc {
    display: block;
    font-size: 0.6875rem;
    color: hsl(var(--muted-fg));
    line-height: 1.4;
    margin-top: 0.25rem;
}

.ct-social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
}
.ct-social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.6rem 0.25rem;
    border-radius: 0.65rem;
    color: #fff;
    text-decoration: none;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.ct-social-btn:hover { transform: translateY(-2px) scale(1.03); }
.ct-social-btn i { font-size: 1.15rem; line-height: 1; display: block; }
.ct-social-btn span {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
@media (min-width: 400px) {
    .ct-social-btn { padding: 0.7rem 0.35rem; }
    .ct-social-btn i { font-size: 1.25rem; }
    .ct-social-btn span { font-size: 0.6875rem; }
}
@media (min-width: 640px) {
    .ct-social-grid { gap: 0.625rem; }
    .ct-social-btn { padding: 0.75rem 0.5rem; }
    .ct-social-btn i { font-size: 1.375rem; }
    .ct-social-btn span { font-size: 0.75rem; }
}

.ct-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: hsla(0, 84%, 50%, 0.05);
    border: 1px solid hsla(0, 84%, 50%, 0.15);
    border-radius: 0.75rem;
    min-width: 0;
}
.ct-note i { color: hsl(0 84% 50%); font-size: 1rem; flex-shrink: 0; margin-top: 0.125rem; }
.ct-note p {
    margin: 0;
    font-size: 0.75rem;
    color: hsl(var(--muted-fg));
    line-height: 1.6;
    word-wrap: break-word;
}

.ct-response {
    max-width: 48rem;
    margin: 2rem auto 0;
    padding: 1.75rem 1.25rem;
    text-align: center;
    background: linear-gradient(135deg, hsla(43, 96%, 56%, 0.1), hsla(0, 84%, 50%, 0.1));
    border: 1px solid hsla(43, 96%, 56%, 0.3);
    border-radius: 1rem;
    box-sizing: border-box;
    width: 100%;
}
@media (min-width: 640px) {
    .ct-response { padding: 2.25rem 2rem; margin-top: 3rem; }
}
.ct-response-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: hsla(43, 96%, 56%, 0.2);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(43 96% 45%);
    font-size: 1.5rem;
}
.ct-response h3 { font-size: 1.375rem; font-weight: 900; margin: 0 0 0.75rem; line-height: 1.3; }
.ct-response p {
    color: hsl(var(--muted-fg));
    max-width: 32rem;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 0.9375rem;
    word-wrap: break-word;
}
.ct-response a {
    color: hsl(var(--primary));
    font-weight: 700;
    word-break: break-all;
    overflow-wrap: anywhere;
}

@media (max-width: 400px) {
    .ct-card { padding: 1rem; border-radius: 0.875rem; }
    .ct-head-icon { width: 2.5rem; height: 2.5rem; min-width: 2.5rem; font-size: 1rem; }
    .ct-head-title { font-size: 1.125rem; }
    .ct-social-btn i { font-size: 1rem; }
    .ct-social-btn span { font-size: 0.5625rem; }
}

/* =========================================================
   About/Index grids
   ========================================================= */
@media (min-width: 1024px) {
    .about-lg-2col { grid-template-columns: 1fr 1.15fr; }
    .about-apk-grid { grid-template-columns: 1.2fr 1fr; }
    .lg-2col { grid-template-columns: 1fr 1.15fr; }
    .apk-grid { grid-template-columns: 1.15fr 1fr; }
    .about-home-grid { grid-template-columns: 1.15fr 1fr; }
    .vision-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Utility
   ========================================================= */
* { min-width: 0; }


/* =========================================================
   FAQ Page Styles
   ========================================================= */
.faq-hero {
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-search-wrap {
    max-width: 40rem;
    margin: 0 auto 1.5rem;
    position: relative;
}

.faq-search-wrap input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    border: 1px solid hsl(var(--input));
    border-radius: 0.875rem;
    font-family: inherit;
    font-size: 0.9375rem;
    background: hsl(var(--bg));
    color: hsl(var(--fg));
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-search-wrap input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsla(0, 84%, 50%, 0.15);
}

.faq-search-wrap i {
    position: absolute;
    top: 50%;
    inset-inline-end: 1rem;
    transform: translateY(-50%);
    color: hsl(var(--muted-fg));
    pointer-events: none;
    font-size: 1rem;
}

.faq-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.faq-toolbar button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    background: hsl(var(--card-bg));
    color: hsl(var(--fg));
    border: 1px solid hsl(var(--border));
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.faq-toolbar button:hover {
    border-color: hsla(0, 84%, 50%, 0.5);
    color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px hsla(0, 84%, 50%, 0.4);
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category-title {
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    font-weight: 900;
    margin-bottom: 1.25rem;
    padding-inline-start: 0.875rem;
    border-inline-start: 4px solid hsl(var(--primary));
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.3;
}

.faq-list {
    background: hsl(var(--card-bg));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px -6px hsla(0, 0%, 0%, 0.08);
}

.faq-item {
    border-bottom: 1px solid hsl(var(--border));
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-align: right;
    font-size: 0.9375rem;
    font-weight: 700;
    color: hsl(var(--fg));
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
    line-height: 1.6;
}

.faq-q:hover {
    background: hsl(var(--muted));
    color: hsl(var(--primary));
}

.faq-q i {
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: hsl(var(--primary));
}

.faq-q.active {
    background: hsla(0, 84%, 50%, 0.05);
    color: hsl(var(--primary));
}

.faq-q.active i {
    transform: rotate(180deg);
}

.faq-a {
    display: none;
    padding: 0 1.25rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1.9;
    color: hsl(var(--muted-fg));
    border-top: 1px dashed hsl(var(--border));
    padding-top: 1rem;
    margin-top: -0.25rem;
}

.faq-a.show {
    display: block;
    animation: faqFadeIn 0.25s ease-out;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: hsl(var(--muted-fg));
    font-size: 0.9375rem;
}

.faq-empty i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: hsl(var(--muted-fg));
    opacity: 0.6;
}

.faq-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.faq-stat {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    font-size: 0.8125rem;
    font-weight: 700;
    color: hsl(var(--muted-fg));
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.faq-stat strong {
    color: hsl(var(--primary));
    font-weight: 900;
}

@media (max-width: 640px) {
    .faq-q {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    .faq-a {
        padding: 0.75rem 1rem 1rem;
        font-size: 0.8125rem;
    }
    .faq-category-title {
        font-size: 1.125rem;
    }
    .faq-toolbar button {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
}
