/* ===================================================================
   CashierThru Marketing Site — marketing.css
   Isolated from admin dashboard styles. Do NOT import this
   anywhere that also loads dashboard CSS.
=================================================================== */

/* ------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens) — Light mode
------------------------------------------------------------------ */
:root {
    --primary:        #2078a5;
    --primary-dark:   #155a7d;
    --primary-light:  rgba(32, 120, 165, 0.12);
    --secondary:      #1A1A2E;
    --accent:         #4a4a4a;
    --surface:        #FAFAFC;
    --surface-2:      #F0F0F5;
    --surface-3:      #E8E8EE;
    --text:           #1A1A2E;
    --text-muted:     #5C5C6D;
    --success:        #22C55E;
    --error:          #DC2626;
    --warning:        #D97706;
    --border:         rgba(0, 0, 0, 0.08);
    --border-primary: rgba(32, 120, 165, 0.4);
    --radius-sm:      8px;
    --radius-md:      16px;
    --radius-lg:      24px;
    --radius-pill:    50px;
    --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md:      0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg:      0 24px 64px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 0 40px rgba(32, 120, 165, 0.25);
    --font-heading:   'Roboto', system-ui, sans-serif;
    --font-body:      'Roboto', system-ui, sans-serif;
    --font-arabic:    'Cairo', system-ui, sans-serif;
    --input-bg:       #EBEBF5;
    --input-border:   rgba(0, 0, 0, 0.1);
    --transition:     0.3s ease;
    --nav-height:     72px;
    --container:      1200px;
}

/* ------------------------------------------------------------------
   2. Reset & Base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family:      var(--font-body);
    background-color: var(--surface);
    color:            var(--text);
    line-height:      1.6;
    overflow-x:       hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ------------------------------------------------------------------
   3. Layout Utilities
------------------------------------------------------------------ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text);
}

.section-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ------------------------------------------------------------------
   4. Reusable Components
------------------------------------------------------------------ */

/* Glass card — light mode */
.glass {
    background:    rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border:        1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow:    var(--shadow-sm);
}

/* Orange glow */
.glow-primary {
    box-shadow: var(--shadow-primary);
    border-color: var(--border-primary);
}

/* Buttons */
.btn-primary {
    display:         inline-flex;
    align-items:     center;
    gap:             8px;
    background:      linear-gradient(135deg, var(--primary), var(--primary-dark));
    color:           #fff;
    padding:         14px 32px;
    border-radius:   var(--radius-pill);
    font-family:     var(--font-body);
    font-weight:     600;
    font-size:       15px;
    transition:      transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    cursor:          pointer;
    border:          none;
    white-space:     nowrap;
}
.btn-primary:hover {
    transform:   translateY(-2px);
    box-shadow:  0 8px 24px rgba(32, 120, 165, 0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    display:       inline-flex;
    align-items:   center;
    gap:           8px;
    background:    transparent;
    color:         var(--text);
    padding:       13px 32px;
    border-radius: var(--radius-pill);
    font-weight:   600;
    font-size:     15px;
    border:        1.5px solid var(--border);
    transition:    border-color var(--transition), background var(--transition), transform var(--transition);
    white-space:   nowrap;
}
.btn-outline:hover {
    border-color: var(--primary);
    background:   var(--primary-light);
    transform:    translateY(-2px);
}

.btn-lg  { padding: 16px 40px; font-size: 17px; }
.btn-sm  { padding: 10px 22px; font-size: 14px; }

/* Form elements — light grey inputs, rounded, subtle recessed look */
.form-control {
    width:            100%;
    background:       var(--input-bg);
    border:           1px solid var(--input-border);
    border-radius:    10px;
    color:            var(--text);
    font-family:      var(--font-body);
    font-size:        15px;
    padding:          12px 16px;
    transition:       border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline:          none;
    -webkit-appearance: none;
    box-shadow:       inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow:   inset 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 3px rgba(32, 120, 165, 0.15);
    background:   #fff;
}
.form-control.is-invalid { border-color: var(--error); }
.form-control::placeholder { color: var(--text-muted); }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; border-radius: 10px; }

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 0; }
.form-group label {
    font-size:   14px;
    font-weight: 600;
    color:       var(--text);
    font-family: var(--font-body);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field-error {
    font-size:  12px;
    color:      var(--error);
    margin-top: 4px;
    display:    block;
}

/* Alerts */
.alert {
    display:     flex;
    align-items: flex-start;
    gap:         14px;
    padding:     20px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}
.alert-success { border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.05); }
.alert-success svg { color: var(--success); flex-shrink: 0; }
.alert-error   { border-color: rgba(252, 129, 129, 0.3); background: rgba(252, 129, 129, 0.05); }
.alert-error   svg { color: var(--error); flex-shrink: 0; }
.alert-link    { color: var(--primary); font-weight: 600; }
.alert-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------
   5. Scroll Animations
------------------------------------------------------------------ */
[data-animate] {
    opacity:    0;
    transform:  translateY(30px);
    transition: opacity 0.7s ease calc(var(--delay, 0s)),
                transform 0.7s ease calc(var(--delay, 0s));
}
[data-animate].visible {
    opacity:   1;
    transform: none;
}

/* ------------------------------------------------------------------
   6. NAVBAR
------------------------------------------------------------------ */
.navbar {
    position:         sticky;
    top:              0;
    z-index:          1000;
    height:           var(--nav-height);
    display:          flex;
    align-items:      center;
    transition:       background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
    background:       rgba(255, 255, 255, 0.92);
    backdrop-filter:  blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:       0 1px 0 var(--border);
}

.navbar-inner {
    width:       100%;
    display:     flex;
    align-items: center;
    gap:         32px;
}

.navbar-brand {
    display:     flex;
    align-items: center;
    gap:         10px;
    flex-shrink: 0;
}
.brand-icon { display: flex; align-items: center; }
.brand-name {
    font-family: var(--font-heading);
    font-size:   18px;
    font-weight: 700;
    color:       var(--text);
    white-space: nowrap;
}
.brand-ar {
    font-size:   14px;
    color:       var(--text-muted);
    margin-inline-start: 6px;
}

.navbar-links {
    display:     flex;
    align-items: center;
    gap:         4px;
    margin-inline-start: auto;
}
.navbar-links .nav-link {
    font-size:     14px;
    font-weight:   500;
    color:         var(--text-muted);
    padding:       8px 14px;
    border-radius: var(--radius-sm);
    transition:    color var(--transition), background var(--transition);
}
.navbar-links .nav-link:hover {
    color:       var(--text);
    background:  rgba(0, 0, 0, 0.04);
}

.navbar-actions {
    display:     flex;
    align-items: center;
    gap:         12px;
    flex-shrink: 0;
}

.lang-toggle {
    background:    var(--surface-3);
    border:        1.5px solid var(--border);
    color:         var(--text);
    font-family:   var(--font-body);
    font-size:     12px;
    font-weight:   700;
    padding:       6px 14px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.05em;
    transition:    border-color var(--transition), color var(--transition);
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }

.hamburger {
    display:        none;
    flex-direction: column;
    gap:            5px;
    width:          32px;
    padding:        4px;
    margin-inline-start: auto;
}
.hamburger span {
    display:          block;
    height:           2px;
    background:       var(--text);
    border-radius:    2px;
    transition:       transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------
   7. HERO SECTION
------------------------------------------------------------------ */
.hero {
    position:    relative;
    min-height:  100vh;
    display:     flex;
    flex-direction: column;
    justify-content: center;
    overflow:    hidden;
    padding-top: var(--nav-height);
}

/* Animated gradient mesh background */
.hero-bg {
    position: absolute;
    inset:    0;
    z-index:  0;
}

.mesh-gradient {
    position:   absolute;
    inset:      0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(32, 120, 165, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(248, 248, 252, 0.9) 0%, transparent 50%),
        radial-gradient(ellipse 100% 100% at 50% 100%, rgba(74, 74, 74, 0.06) 0%, transparent 60%),
        var(--surface);
    animation: meshShift 12s ease-in-out infinite alternate;
}
@keyframes meshShift {
    0%   { opacity: 1; }
    50%  { opacity: 0.85; }
    100% { opacity: 1; }
}

.dot-grid {
    position:         absolute;
    inset:            0;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size:  32px 32px;
    z-index:          0;
}

/* Floating shapes */
.floating-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape {
    position:      absolute;
    border-radius: 50%;
    filter:        blur(60px);
    animation:     floatShape 8s ease-in-out infinite;
}
.shape-1 { width: 300px; height: 300px; background: rgba(32, 120, 165, 0.06); top: 10%;  left: 60%;  animation-delay: 0s; }
.shape-2 { width: 200px; height: 200px; background: rgba(74, 74, 74, 0.08); top: 50%;  left: 10%;  animation-delay: 2s; }
.shape-3 { width: 400px; height: 400px; background: rgba(232, 232, 238, 0.9);   top: 60%;  left: 70%;  animation-delay: 4s; }
.shape-4 { width: 150px; height: 150px; background: rgba(32, 120, 165, 0.08); top: 80%;  left: 40%;  animation-delay: 1s; }

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(20px, -20px) scale(1.05); }
}

.hero-inner {
    position:       relative;
    z-index:        1;
    display:        grid;
    grid-template-columns: 1fr 1fr;
    gap:            64px;
    align-items:    center;
    padding-top:    80px;
    padding-bottom: 40px;
}

.hero-content { max-width: 580px; }

.hero-badge {
    display:       inline-flex;
    align-items:   center;
    gap:           8px;
    font-size:     13px;
    font-weight:   500;
    color:         var(--text-muted);
    background:    rgba(255, 255, 255, 0.9);
    border:        1px solid var(--border);
    border-radius: var(--radius-pill);
    padding:       8px 16px;
    margin-bottom: 24px;
    box-shadow:    var(--shadow-sm);
}
.badge-dot {
    width:         8px;
    height:        8px;
    background:    var(--success);
    border-radius: 50%;
    animation:     pulse 2s ease-in-out infinite;
    flex-shrink:   0;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size:   clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    display:     flex;
    flex-direction: column;
    gap:         4px;
}
.gradient-text {
    background:             linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip:         text;
}

.hero-sub {
    font-size:     18px;
    color:         var(--text-muted);
    margin-bottom: 40px;
    line-height:   1.7;
}

.hero-ctas {
    display:   flex;
    gap:       16px;
    flex-wrap: wrap;
}

/* Dashboard mockup */
.hero-visual { position: relative; }

.dashboard-mockup {
    background:    #fff;
    border:        1px solid var(--border);
    border-radius: var(--radius-md);
    overflow:      hidden;
    box-shadow:    var(--shadow-lg);
    position:      relative;
    z-index:       1;
}

.mockup-bar {
    display:        flex;
    align-items:    center;
    gap:            6px;
    padding:        12px 16px;
    background:     var(--surface-3);
    border-bottom:  1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot.red    { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green  { background: #28C840; }
.mockup-url {
    font-size:  11px;
    color:      var(--text-muted);
    background: var(--surface-2);
    padding:    4px 12px;
    border-radius: var(--radius-pill);
    margin-inline-start: 8px;
    overflow:   hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width:  260px;
}

.mockup-body { display: flex; height: 280px; }

.mockup-sidebar {
    width:         56px;
    background:    var(--surface-3);
    border-inline-end: 1px solid var(--border);
    padding:       16px 8px;
    display:       flex;
    flex-direction: column;
    gap:           8px;
}
.mock-nav-item {
    height:        8px;
    border-radius: 4px;
    background:    rgba(0, 0, 0, 0.08);
}
.mock-nav-item.active { background: var(--primary); }

.mockup-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.mock-stats-row { display: flex; gap: 8px; }
.mock-stat {
    flex:          1;
    background:    var(--surface-3);
    border-radius: var(--radius-sm);
    padding:       10px;
    border:        1px solid var(--border);
}
.mock-stat-num { height: 14px; border-radius: 4px; margin-bottom: 6px; width: 60%; opacity: 0.8; }
.mock-stat-label { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.06); width: 80%; }

.mock-chart {
    display:     flex;
    align-items: flex-end;
    gap:         4px;
    height:      80px;
    background:  var(--surface-3);
    border-radius: var(--radius-sm);
    padding:     10px;
    border:      1px solid var(--border);
}
.mock-bar { flex: 1; border-radius: 3px 3px 0 0; transition: height 1s ease; }

.mock-table { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mock-row {
    height:        28px;
    background:    var(--surface-3);
    border-radius: var(--radius-sm);
    border:        1px solid var(--border);
}
.mock-row.header { background: rgba(32, 120, 165, 0.08); border-color: var(--border-primary); }

.mockup-glow {
    position:      absolute;
    top:           50%;
    left:          50%;
    transform:     translate(-50%, -50%);
    width:         100%;
    height:        100%;
    background:    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(32, 120, 165, 0.08), transparent);
    pointer-events: none;
    z-index:       0;
}

/* Stats row */
.hero-stats {
    position:         relative;
    z-index:          1;
    padding:          32px 0 48px;
    border-top:       1px solid var(--border);
    margin-top:       auto;
}

.stats-row {
    display:         flex;
    align-items:     center;
    justify-content: center;
    flex-wrap:       wrap;
    gap:             0;
}
.stat-item {
    display:       flex;
    flex-direction: column;
    align-items:   center;
    gap:           4px;
    padding:       0 40px;
}
.stat-item strong {
    font-family: var(--font-heading);
    font-size:   28px;
    font-weight: 800;
    color:       var(--primary);
}
.stat-item span { font-size: 13px; color: var(--text-muted); }
.stat-divider {
    width:  1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}

/* ------------------------------------------------------------------
   8. ABOUT SECTION
------------------------------------------------------------------ */
.about-section { background: var(--surface-2); }

.about-grid {
    display:             grid;
    grid-template-columns: 1fr 1fr;
    gap:                 64px;
    align-items:         center;
}

.about-description {
    font-size:     17px;
    color:         var(--text-muted);
    line-height:   1.8;
    margin-bottom: 32px;
}

.about-contacts { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
    display:     flex;
    align-items: flex-start;
    gap:         12px;
    font-size:   15px;
    color:       var(--text-muted);
}
.contact-icon {
    display:       flex;
    align-items:   center;
    justify-content: center;
    width:         36px;
    height:        36px;
    background:    var(--primary-light);
    border-radius: var(--radius-sm);
    color:         var(--primary);
    flex-shrink:   0;
}
.contact-item a:hover { color: var(--primary); }

.about-card { padding: 32px; }
.about-brand-icon {
    display:       flex;
    align-items:   center;
    gap:           12px;
    margin-bottom: 28px;
}
.about-brand-name {
    font-family: var(--font-heading);
    font-size:   20px;
    font-weight: 700;
}

.about-stat-grid {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   16px;
    margin-bottom:         24px;
}
.about-stat {
    background:    var(--surface-3);
    border-radius: var(--radius-sm);
    padding:       16px;
    text-align:    center;
}
.about-stat strong {
    display:     block;
    font-family: var(--font-heading);
    font-size:   22px;
    font-weight: 800;
    color:       var(--primary);
}
.about-stat span { font-size: 12px; color: var(--text-muted); }

.about-badge {
    display:     flex;
    align-items: center;
    gap:         8px;
    font-size:   14px;
    color:       var(--text-muted);
}

/* ------------------------------------------------------------------
   9. FEATURES SECTION
------------------------------------------------------------------ */
.features-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap:                   24px;
}

.feature-card {
    padding:    28px 24px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    cursor:     default;
}
.feature-card:hover {
    transform:    translateY(-4px);
    box-shadow:   var(--shadow-primary);
    border-color: var(--border-primary);
}

.feature-icon {
    font-size:     28px;
    width:         56px;
    height:        56px;
    background:    var(--primary-light);
    border-radius: var(--radius-sm);
    display:       flex;
    align-items:   center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-title {
    font-family:   var(--font-heading);
    font-size:     18px;
    font-weight:   700;
    margin-bottom: 8px;
    color:         var(--text);
}

.feature-desc {
    font-size:  14px;
    color:      var(--text-muted);
    line-height: 1.7;
}

/* ------------------------------------------------------------------
   10. HOW IT WORKS SECTION
------------------------------------------------------------------ */
.how-section { background: var(--surface-2); }

.video-wrapper {
    margin-bottom: 64px;
}
.video-container {
    position:      relative;
    padding-bottom: 56.25%;
    height:        0;
    overflow:      hidden;
    border-radius: var(--radius-lg);
    border:        2px solid var(--border-primary);
    box-shadow:    var(--shadow-primary), var(--shadow-lg);
}
.video-container iframe {
    position: absolute;
    top:      0;
    left:     0;
    width:    100%;
    height:   100%;
    border-radius: var(--radius-lg);
}

.steps-grid {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap:                   24px;
}

.step-card {
    padding:    32px 24px;
    text-align: center;
    transition: transform var(--transition);
}
.step-card:hover { transform: translateY(-4px); }

.step-num {
    font-family: var(--font-heading);
    font-size:   56px;
    font-weight: 800;
    color:       var(--primary);
    opacity:     0.3;
    line-height: 1;
    margin-bottom: 8px;
}
.step-icon { font-size: 32px; margin-bottom: 16px; }
.step-title {
    font-family:   var(--font-heading);
    font-size:     18px;
    font-weight:   700;
    margin-bottom: 8px;
}
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ------------------------------------------------------------------
   11. DOWNLOAD SECTION
------------------------------------------------------------------ */
.download-cards {
    display:             grid;
    grid-template-columns: 1fr 1fr;
    gap:                 32px;
    margin-bottom:       48px;
}

.download-card {
    padding:    40px 32px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.download-card:hover { transform: translateY(-4px); }

.download-card-icon { font-size: 48px; margin-bottom: 16px; }

.download-card h3 {
    font-family:   var(--font-heading);
    font-size:     22px;
    font-weight:   700;
    margin-bottom: 12px;
}

.download-meta {
    display:       flex;
    gap:           8px;
    justify-content: center;
    margin-bottom: 12px;
}
.download-badge-mini {
    font-size:     11px;
    font-weight:   600;
    background:    rgba(0, 0, 0, 0.04);
    border:        1px solid var(--border);
    padding:       4px 10px;
    border-radius: var(--radius-pill);
    color:         var(--text-muted);
}

.download-desc {
    font-size:     14px;
    color:         var(--text-muted);
    margin-bottom: 24px;
    line-height:   1.7;
}

.btn-download { width: 100%; justify-content: center; }

.download-badges {
    display:         flex;
    justify-content: center;
    flex-wrap:       wrap;
    gap:             12px;
}

.badge-pill {
    display:       flex;
    align-items:   center;
    gap:           8px;
    font-size:     14px;
    font-weight:   500;
    color:         var(--text-muted);
    background:    rgba(34, 197, 94, 0.06);
    border:        1px solid rgba(34, 197, 94, 0.2);
    padding:       10px 20px;
    border-radius: var(--radius-pill);
}
.badge-pill svg { color: var(--success); flex-shrink: 0; }

/* ------------------------------------------------------------------
   12. REGISTRATION SECTION
------------------------------------------------------------------ */
.register-section { background: var(--surface-2); }

.register-card {
    position:       relative;
    max-width:      640px;
    margin:         0 auto;
    padding:        0;
    border-radius:  20px;
    overflow:       hidden;
    box-shadow:     0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border:         1px solid var(--border);
}

.register-card-accent {
    height:         4px;
    width:          100%;
    background:     linear-gradient(90deg, var(--primary), var(--primary-dark));
    flex-shrink:   0;
}

.register-form-intro {
    padding:    24px 40px 0;
    margin:     0;
    font-size:  15px;
    color:      var(--text-muted);
    line-height: 1.6;
    font-family: var(--font-body);
}

.register-form {
    padding: 32px 40px 40px;
}

/* Keep two inputs per row in registration form */
.register-card .form-row {
    display:               grid;
    grid-template-columns:  1fr 1fr;
    gap:                   20px;
    align-items:           start;
}

.register-card .form-row + .form-row,
.register-card .form-row + .form-group,
.register-card .form-group + .form-row,
.register-card .form-group + .form-group,
.register-card .subdomain-group + .form-row,
.register-card .form-row + .subdomain-group { margin-top: 24px; }

.register-card .subdomain-group { margin-top: 24px; }

.register-card .form-group label {
    margin-bottom: 2px;
}

.register-card .form-control {
    padding: 14px 16px;
    font-size: 15px;
}

.register-card .subdomain-input-wrap .form-control,
.register-card .subdomain-prefix,
.register-card .subdomain-suffix {
    padding: 14px 12px;
}

.subdomain-input-wrap {
    display:     flex;
    align-items: center;
    gap:         0;
    background:  var(--input-bg);
    border:      1px solid var(--input-border);
    border-radius: 10px;
    overflow:    hidden;
    box-shadow:  inset 0 1px 2px rgba(0, 0, 0, 0.04);
    transition:  border-color var(--transition), box-shadow var(--transition);
}
.subdomain-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow:   inset 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 3px rgba(32, 120, 165, 0.15);
    background:  #fff;
}
.subdomain-prefix,
.subdomain-suffix {
    padding:     12px 10px;
    font-size:   14px;
    color:       var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    background:  transparent;
    font-family: var(--font-body);
}
.subdomain-prefix { border-inline-end: 1px solid var(--input-border); }
.subdomain-suffix { border-inline-start: 1px solid var(--input-border); }

.subdomain-input-wrap .form-control {
    border:        none;
    background:    transparent;
    border-radius: 0;
    box-shadow:    none;
    padding:       12px 12px;
}
.subdomain-input-wrap .form-control:focus { box-shadow: none; }

.subdomain-preview {
    display:     flex;
    align-items: center;
    gap:         4px;
    margin-top:  8px;
    font-size:   13px;
    color:       var(--text-muted);
}
.subdomain-preview strong { color: var(--primary); }

.btn-register-submit {
    width:           100%;
    margin-top:      32px;
    padding:        18px 24px;
    font-size:      17px;
    font-weight:    600;
    justify-content: center;
    border-radius:  12px;
    gap:            10px;
    box-shadow:     0 4px 14px rgba(32, 120, 165, 0.35);
}
.btn-register-submit:hover {
    box-shadow: 0 6px 20px rgba(32, 120, 165, 0.4);
}

.register-form-note {
    display:       flex;
    align-items:   center;
    justify-content: center;
    gap:           8px;
    margin-top:    20px;
    padding:       0 16px;
    text-align:    center;
    font-size:    13px;
    color:         var(--text-muted);
    line-height:   1.5;
    font-family:   var(--font-body);
}
.register-form-note svg {
    flex-shrink: 0;
    color: var(--success);
}

.btn-submit {
    width:      100%;
    margin-top: 28px;
    padding:    16px;
    font-size:  17px;
    justify-content: center;
}

.form-note {
    text-align: center;
    font-size:  13px;
    color:      var(--text-muted);
    margin-top: 16px;
}

.registration-closed {
    text-align: center;
    padding:    48px;
    display:    flex;
    flex-direction: column;
    align-items: center;
    gap:         16px;
}
.registration-closed h3 {
    font-family: var(--font-heading);
    font-size:   22px;
    font-weight: 700;
}
.registration-closed p { color: var(--text-muted); max-width: 480px; }

.info-banner {
    display:       flex;
    align-items:   center;
    gap:           8px;
    font-size:     13px;
    color:         var(--warning);
    background:    rgba(74, 74, 74, 0.08);
    border:        1px solid rgba(74, 74, 74, 0.25);
    border-radius: 12px;
    padding:       14px 18px;
    margin-top:    24px;
}
.register-card .info-banner {
    margin-top: 24px;
}

/* ------------------------------------------------------------------
   13. CONTACT SECTION
------------------------------------------------------------------ */
.contact-grid {
    display:             grid;
    grid-template-columns: 1fr 1fr;
    gap:                 48px;
    align-items:         start;
}

.contact-form {
    padding: 40px;
}
.contact-form .form-group + .form-group { margin-top: 20px; }

.contact-info-card {
    padding:       32px;
    margin-bottom: 24px;
}
.contact-info-item {
    display:     flex;
    align-items: flex-start;
    gap:         16px;
    padding:     16px 0;
}
.contact-info-item + .contact-info-item { border-top: 1px solid var(--border); }
.cinfo-icon { font-size: 24px; flex-shrink: 0; width: 40px; text-align: center; }
.contact-info-item strong { font-size: 14px; font-weight: 600; display: block; margin-bottom: 4px; }
.contact-info-item p { font-size: 15px; color: var(--text-muted); }
.contact-info-item a:hover { color: var(--primary); }

.whatsapp-cta {
    display:       flex;
    align-items:   center;
    justify-content: center;
    gap:           10px;
    background:    #25D366;
    color:         #fff;
    padding:       14px 24px;
    border-radius: var(--radius-md);
    font-weight:   600;
    font-size:     15px;
    transition:    transform var(--transition), box-shadow var(--transition);
}
.whatsapp-cta:hover {
    transform:  translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    color:      #fff;
}

/* ------------------------------------------------------------------
   14. FOOTER
------------------------------------------------------------------ */
.footer {
    background:  var(--surface-2);
    border-top:  1px solid var(--border);
    padding:     64px 0 32px;
}

.footer-top {
    display:               grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap:                   48px;
    padding-bottom:        48px;
    border-bottom:         1px solid var(--border);
    margin-bottom:         32px;
}

.footer-tagline {
    font-size:  14px;
    color:      var(--text-muted);
    margin:     12px 0 20px;
    line-height: 1.6;
    max-width:  280px;
}

.footer-socials { display: flex; gap: 8px; }
.social-link {
    display:       flex;
    align-items:   center;
    justify-content: center;
    width:         36px;
    height:        36px;
    background:    rgba(0, 0, 0, 0.04);
    border:        1px solid var(--border);
    border-radius: var(--radius-sm);
    color:         var(--text-muted);
    transition:    color var(--transition), border-color var(--transition), background var(--transition);
}
.social-link:hover {
    color:         var(--primary);
    border-color:  var(--border-primary);
    background:    var(--primary-light);
}

.footer-nav-group h4 {
    font-size:     12px;
    font-weight:   700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color:         var(--text-muted);
    margin-bottom: 16px;
}
.footer-nav-group ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-group a {
    font-size:  14px;
    color:      var(--text-muted);
    transition: color var(--transition);
}
.footer-nav-group a:hover { color: var(--primary); }

.footer-bottom {
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    font-size:       13px;
    color:           var(--text-muted);
    flex-wrap:       wrap;
    gap:             8px;
}
.footer-made { display: flex; align-items: center; gap: 4px; }

/* ------------------------------------------------------------------
   15. WhatsApp Floating Button
------------------------------------------------------------------ */
.whatsapp-float {
    position:        fixed;
    bottom:          28px;
    inset-inline-end: 28px;
    z-index:         999;
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           56px;
    height:          56px;
    background:      #25D366;
    border-radius:   50%;
    color:           #fff;
    box-shadow:      0 4px 20px rgba(37, 211, 102, 0.4);
    transition:      transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
    transform:  translateY(-3px) scale(1.05);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}
.whatsapp-tooltip {
    position:         absolute;
    right:            calc(100% + 12px);
    background:       rgba(26, 26, 46, 0.92);
    color:            #F0F0F5;
    font-size:        13px;
    padding:          6px 12px;
    border-radius:    var(--radius-sm);
    white-space:      nowrap;
    opacity:          0;
    pointer-events:   none;
    transition:       opacity var(--transition);
    border:            1px solid rgba(255, 255, 255, 0.1);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ------------------------------------------------------------------
   16. RTL Support — html[dir="rtl"] & Arabic font (Cairo)
------------------------------------------------------------------ */
html[dir="rtl"] {
    direction: rtl;
}
/* Arabic language: use Cairo for all text */
html[lang="ar"] body,
html[lang="ar"] .section-title,
html[lang="ar"] .section-tag,
html[lang="ar"] .section-sub,
html[lang="ar"] .brand-name,
html[lang="ar"] .navbar-links .nav-link,
html[lang="ar"] .form-group label,
html[lang="ar"] .register-form-intro,
html[lang="ar"] .form-control,
html[lang="ar"] .form-note,
html[lang="ar"] .register-form-note,
html[lang="ar"] .feature-title,
html[lang="ar"] .feature-desc,
html[lang="ar"] .step-title,
html[lang="ar"] .step-desc,
html[lang="ar"] .footer-nav-group a,
html[lang="ar"] .footer-tagline,
html[lang="ar"] .footer-nav-group h4,
html[lang="ar"] .subdomain-prefix,
html[lang="ar"] .subdomain-suffix,
html[lang="ar"] .subdomain-preview,
html[lang="ar"] .btn-primary,
html[lang="ar"] .btn-outline,
html[lang="ar"] .lang-toggle,
html[lang="ar"] .hero-title,
html[lang="ar"] .hero-sub,
html[lang="ar"] .hero-badge,
html[lang="ar"] .about-brand-name,
html[lang="ar"] .about-description,
html[lang="ar"] .about-badge,
html[lang="ar"] .about-stat span,
html[lang="ar"] .contact-item,
html[lang="ar"] .stat-item span,
html[lang="ar"] .download-card h3,
html[lang="ar"] .download-desc,
html[lang="ar"] .download-badge-mini,
html[lang="ar"] .badge-pill,
html[lang="ar"] .registration-closed h3,
html[lang="ar"] .registration-closed p,
html[lang="ar"] .contact-info-item strong,
html[lang="ar"] .contact-info-item p,
html[lang="ar"] .footer-bottom,
html[lang="ar"] .footer-made {
    font-family: var(--font-arabic);
}
html[lang="ar"] .brand-ar {
    font-family: var(--font-arabic);
}
html[dir="rtl"] .navbar-links {
    margin-inline-start: auto;
    margin-inline-end:   unset;
}
html[dir="rtl"] .whatsapp-float {
    inset-inline-start: 28px;
    inset-inline-end:   auto;
}
html[dir="rtl"] .whatsapp-tooltip {
    left:  calc(100% + 12px);
    right: auto;
}
html[dir="rtl"] .subdomain-prefix {
    border-inline-end:   none;
    border-inline-start: 1px solid var(--border);
}
html[dir="rtl"] .subdomain-suffix {
    border-inline-start: none;
    border-inline-end:   1px solid var(--border);
}
html[dir="rtl"] .hero-inner { direction: rtl; }
html[dir="rtl"] .about-grid { direction: rtl; }
html[dir="rtl"] .form-row   { direction: rtl; }

/* ------------------------------------------------------------------
   17. Responsive — Tablet (≤1024px)
------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; padding-top: 60px; }
    .hero-content { max-width: 100%; text-align: center; }
    .hero-ctas { justify-content: center; }
    .hero-visual { display: none; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .steps-grid { grid-template-columns: 1fr; gap: 20px; }

    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------
   18. Responsive — Mobile (≤768px)
------------------------------------------------------------------ */
@media (max-width: 768px) {
    :root { --nav-height: 64px; }

    .section { padding: 64px 0; }
    .container { padding: 0 16px; }

    /* Navbar mobile */
    .navbar-links {
        display:        none;
        position:       fixed;
        top:            var(--nav-height);
        left:           0;
        right:          0;
        background:     rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding:        20px;
        gap:            4px;
        border-bottom:  1px solid var(--border);
        z-index:        999;
        box-shadow:     var(--shadow-md);
    }
    .navbar-links.open { display: flex; }
    .navbar-links .nav-link { padding: 12px 16px; }

    .navbar-actions .btn-primary { display: none; }
    .hamburger { display: flex; }
    .navbar-inner { gap: 12px; }

    /* Hero */
    .hero-title { font-size: clamp(28px, 8vw, 40px); }
    .hero-ctas { flex-direction: column; align-items: center; }
    .hero-ctas .btn-primary,
    .hero-ctas .btn-outline { width: 100%; max-width: 320px; justify-content: center; }

    .stats-row { gap: 0; }
    .stat-item { padding: 0 20px; }
    .stat-item strong { font-size: 22px; }

    /* Grids */
    .features-grid { grid-template-columns: 1fr; }
    .download-cards { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .about-stat-grid { grid-template-columns: 1fr 1fr; }

    /* Footer */
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .footer-brand { grid-column: 1; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .register-form-intro { padding: 20px 24px 0; font-size: 14px; }
    .register-form { padding: 24px 24px 32px; }
    .section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
    .stats-row { flex-wrap: wrap; gap: 16px; justify-content: center; }
    .stat-divider { display: none; }
    .stat-item { padding: 0; min-width: 120px; }
    .hero-badge { font-size: 11px; padding: 6px 12px; }
    /* Stack registration form inputs on small mobile only */
    .register-card .form-row { grid-template-columns: 1fr; }
    .register-form-intro { padding: 16px 20px 0; }
    .register-form { padding: 20px 20px 28px; }
}
