/* Modern landing / login / registration styling */
:root {
    --ma-primary: #5b5bf0;
    --ma-primary-2: #3b82f6;
    --ma-ink: #0f172a;
    --ma-muted: #64748b;
    --ma-line: #e2e8f0;
    --ma-bg: #0b1020;
}
body.ma-body {
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--ma-bg);
    color: var(--ma-ink);
    min-height: 100vh;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}
.ma-body * { box-sizing: border-box; }
.ma-body a { text-decoration: none; }

/* ---------- Navbar ---------- */
.ma-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 32px;
    background: rgba(11, 16, 32, .55);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ma-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; font-weight: 700; font-size: 18px; }
.ma-brand img { width: 36px; height: 36px; object-fit: contain; border-radius: 10px; background: #fff; padding: 3px; }
.ma-nav-links { display: flex; align-items: center; gap: 22px; }
.ma-nav-links a, .ma-nav-links summary { color: rgba(255, 255, 255, .8) !important; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.ma-nav-links a:hover { color: #fff !important; }
.ma-nav-links details { position: relative; margin: 0 !important; }
.ma-nav-links details ul { position: absolute; right: 0; top: 100%; margin-top: 10px; padding: 8px; list-style: none; background: #fff; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.25); min-width: 190px; max-height: 320px; overflow: auto; }
.ma-nav-links details ul li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ma-ink) !important; }
.ma-nav-links details ul li a:hover { background: #f1f5f9; }

.ma-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 24px; border-radius: 12px; border: 0;
    font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.ma-btn-sm { height: 38px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.ma-btn-primary { color: #fff !important; background: linear-gradient(135deg, var(--ma-primary), var(--ma-primary-2)); box-shadow: 0 8px 24px rgba(91, 91, 240, .35); }
.ma-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(91, 91, 240, .5); }
.ma-btn-ghost { color: #fff !important; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); }
.ma-btn-ghost:hover { background: rgba(255, 255, 255, .16); }

/* ---------- Animated backdrop ---------- */
.ma-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(1200px 600px at 80% -10%, #1e2a78 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #0e4d92 0%, transparent 60%), var(--ma-bg); }
.ma-bg::before, .ma-bg::after { content: ''; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.ma-bg::before { width: 420px; height: 420px; background: #6366f1; top: 10%; left: 8%; animation: ma-float 14s ease-in-out infinite; }
.ma-bg::after { width: 360px; height: 360px; background: #06b6d4; bottom: 5%; right: 8%; animation: ma-float 18s ease-in-out infinite reverse; }
@keyframes ma-float { 50% { transform: translate(40px, -30px) scale(1.1); } }
.ma-main { position: relative; z-index: 1; }

/* ---------- Auth split layout ---------- */
.ma-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 20px 40px; gap: 64px; }
.ma-auth-aside { max-width: 460px; color: #fff; }
.ma-auth-aside h1 { color: #fff; font-size: 42px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; }
.ma-auth-aside h1 span { background: linear-gradient(90deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ma-auth-aside p { color: rgba(255, 255, 255, .7); font-size: 16px; line-height: 1.6; }
.ma-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ma-points li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .88); font-size: 15px; }
.ma-points i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #a5b4fc; font-size: 14px; }

.ma-card { width: 100%; max-width: 440px; background: #fff; border-radius: 24px; padding: 40px 36px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.ma-card.ma-card-wide { max-width: 860px; padding: 36px 40px; }
.ma-card h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.01em; color: var(--ma-ink); }
.ma-card .ma-sub { margin: 0 0 28px; color: var(--ma-muted); font-size: 14.5px; }
.ma-field { margin-bottom: 18px; position: relative; }
.ma-field label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.ma-field .ma-label-row { display: flex; justify-content: space-between; align-items: center; }
.ma-field .ma-label-row a { font-size: 13px; font-weight: 600; color: var(--ma-primary); }
.ma-input-wrap { position: relative; }
.ma-input-wrap > i.ma-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 14px; pointer-events: none; }
.ma-input {
    width: 100%; height: 48px; padding: 0 14px 0 40px; font-size: 15px; font-weight: 500;
    color: var(--ma-ink); background: #f8fafc; border: 1.5px solid var(--ma-line); border-radius: 12px; outline: none; transition: all .15s;
}
.ma-input:focus { background: #fff; border-color: var(--ma-primary); box-shadow: 0 0 0 4px rgba(91, 91, 240, .15); }
.ma-field.has-error .ma-input { border-color: #ef4444; }
.ma-field .help-block { color: #dc2626; font-size: 12.5px; margin: 6px 0 0; display: block; }
.ma-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px; color: #94a3b8; cursor: pointer; }
.ma-eye:hover { color: var(--ma-primary); }
.ma-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #475569; margin: 4px 0 20px; cursor: pointer; }
.ma-check input { width: 16px; height: 16px; accent-color: var(--ma-primary); margin: 0; }
.ma-card .ma-btn-primary { width: 100%; }
.ma-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--ma-muted); }
.ma-foot a { color: var(--ma-primary); font-weight: 600; }

/* Demo box */
.ma-demo { max-width: 460px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 18px; padding: 20px; margin-top: 24px; color: #fff; }
.ma-demo .btn { margin: 4px; }

/* ---------- Registration wizard restyle ---------- */
.ma-card .wizard > .steps { margin-bottom: 26px; }
.ma-card .wizard > .steps > ul { display: flex; gap: 8px; padding: 0; margin: 0; list-style: none; }
.ma-card .wizard > .steps > ul > li { flex: 1; width: auto !important; float: none; }
.ma-card .wizard > .steps a, .ma-card .wizard > .steps a:hover, .ma-card .wizard > .steps a:active {
    display: block; width: auto; margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; text-align: center;
    background: #f1f5f9 !important; color: #64748b !important; border: 0;
}
.ma-card .wizard > .steps .current a { background: linear-gradient(135deg, var(--ma-primary), var(--ma-primary-2)) !important; color: #fff !important; }
.ma-card .wizard > .steps .done a { background: #e0e7ff !important; color: #4338ca !important; }
.ma-card .wizard > .steps .number { font-weight: 800; margin-right: 4px; }
.ma-card .wizard > .content { background: transparent !important; border: 0; margin: 0; padding: 0; min-height: 0; overflow: visible; }
.ma-card .wizard > .content > .body { position: static; width: 100% !important; height: auto !important; padding: 0; float: none; }
.ma-card .wizard > .content > .body:after { content: ''; display: table; clear: both; }
.ma-card legend { border: 0; font-size: 17px; font-weight: 700; color: var(--ma-ink) !important; margin-bottom: 18px; }
.ma-card .form-group label { font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.ma-card .form-control, .ma-card .select2-container--default .select2-selection--single {
    height: 46px; border: 1.5px solid var(--ma-line); border-radius: 0 12px 12px 0; background: #f8fafc; box-shadow: none; font-size: 14.5px;
}
.ma-card .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 43px; }
.ma-card .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }
.ma-card .form-control:focus { border-color: var(--ma-primary); background: #fff; box-shadow: 0 0 0 4px rgba(91, 91, 240, .15); }
.ma-card .input-group-addon { background: #f1f5f9; border: 1.5px solid var(--ma-line); border-right: 0; border-radius: 12px 0 0 12px; color: #64748b; }
.ma-card label.error, .ma-card .error:not(input) { color: #dc2626; font-size: 12.5px; font-weight: 500; }
.ma-card .wizard > .actions { margin-top: 26px; }
.ma-card .wizard > .actions > ul { display: flex; justify-content: space-between; gap: 12px; padding: 0; margin: 0; list-style: none; float: none; }
.ma-card .wizard > .actions > ul > li { float: none; }
.ma-card .wizard > .actions a, .ma-card .wizard > .actions a:hover {
    display: inline-flex; align-items: center; height: 46px; padding: 0 28px; border-radius: 12px; font-weight: 600; font-size: 15px;
    background: linear-gradient(135deg, var(--ma-primary), var(--ma-primary-2)) !important; color: #fff !important; box-shadow: 0 8px 24px rgba(91, 91, 240, .3);
}
.ma-card .wizard > .actions .disabled a { background: #e2e8f0 !important; color: #94a3b8 !important; box-shadow: none; }
.ma-card .wizard > .actions li[aria-hidden="true"] { display: none; }

/* ---------- Landing ---------- */
.ma-hero { min-height: 100vh; display: flex; align-items: center; padding: 130px 32px 80px; }
.ma-wrap { max-width: 1180px; margin: 0 auto; width: 100%; }
.ma-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.ma-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #c7d2fe; background: rgba(99, 102, 241, .18); border: 1px solid rgba(165, 180, 252, .3); }
.ma-hero h1 { color: #fff; font-size: 62px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; margin: 22px 0 20px; }
.ma-hero h1 span { background: linear-gradient(90deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ma-hero p.lead { color: rgba(255, 255, 255, .72); font-size: 18px; line-height: 1.65; max-width: 540px; margin: 0 0 32px; }
.ma-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.ma-stats { display: flex; gap: 40px; margin-top: 48px; }
.ma-stats strong { display: block; color: #fff; font-size: 28px; font-weight: 800; }
.ma-stats span { color: rgba(255, 255, 255, .55); font-size: 13px; }

.ma-mock { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 18px; backdrop-filter: blur(10px); box-shadow: 0 40px 100px rgba(0, 0, 0, .45); transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); }
.ma-mock-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.ma-mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.ma-mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.ma-mock-cards div { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px; color: #fff; }
.ma-mock-cards small { display: block; color: rgba(255, 255, 255, .55); font-size: 11px; }
.ma-mock-cards b { font-size: 18px; }
.ma-mock-chart { height: 150px; background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 14px; display: flex; align-items: flex-end; gap: 8px; }
.ma-mock-chart span { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #818cf8, #22d3ee); animation: ma-grow 1.2s ease-out both; }
@keyframes ma-grow { from { height: 0 !important; } }
.ma-mock-rows { margin-top: 12px; display: grid; gap: 8px; }
.ma-mock-rows div { display: flex; justify-content: space-between; background: rgba(255, 255, 255, .06); padding: 10px 12px; border-radius: 10px; color: rgba(255, 255, 255, .8); font-size: 13px; }

.ma-section { position: relative; z-index: 1; padding: 90px 32px; background: #f8fafc; }
.ma-section.ma-dark { background: transparent; }
.ma-section h2 { text-align: center; font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; color: var(--ma-ink); }
.ma-section .ma-sec-sub { text-align: center; color: var(--ma-muted); font-size: 17px; max-width: 620px; margin: 0 auto 56px; }
.ma-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ma-feature { background: #fff; border: 1px solid var(--ma-line); border-radius: 20px; padding: 28px; transition: all .25s; }
.ma-feature:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(15, 23, 42, .1); border-color: #c7d2fe; }
.ma-feature .ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; font-size: 20px; color: #fff; margin-bottom: 18px; background: linear-gradient(135deg, var(--ma-primary), var(--ma-primary-2)); }
.ma-feature h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.ma-feature p { margin: 0; color: var(--ma-muted); font-size: 14.5px; line-height: 1.6; }

.ma-cta-band { max-width: 1000px; margin: 0 auto; text-align: center; padding: 64px 32px; border-radius: 28px; background: linear-gradient(135deg, #4f46e5, #2563eb 60%, #0891b2); box-shadow: 0 30px 80px rgba(37, 99, 235, .35); }
.ma-cta-band h2 { color: #fff; margin-bottom: 12px; }
.ma-cta-band p { color: rgba(255, 255, 255, .85); font-size: 17px; margin: 0 0 28px; }
.ma-cta-band .ma-btn { background: #fff; color: #4338ca !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.ma-footer { position: relative; z-index: 1; text-align: center; padding: 28px; color: rgba(255, 255, 255, .5); font-size: 13px; }

@media (max-width: 991px) {
    .ma-hero-grid { grid-template-columns: 1fr; }
    .ma-features { grid-template-columns: 1fr 1fr; }
    .ma-hero h1 { font-size: 44px; }
    .ma-mock { transform: none; }
    .ma-auth { flex-direction: column; gap: 32px; }
    .ma-auth-aside { display: none; }
}
@media (max-width: 600px) {
    .ma-nav { padding: 12px 16px; }
    .ma-nav-links { gap: 12px; }
    .ma-features { grid-template-columns: 1fr; }
    .ma-card, .ma-card.ma-card-wide { padding: 28px 20px; border-radius: 20px; }
    .ma-card .wizard > .steps > ul { flex-direction: column; }
    .ma-stats { gap: 22px; }
    .ma-hero { padding-top: 110px; }
}

/* ---------- Landing: real screenshots, tour tabs, steps, pricing, FAQ ---------- */
.ma-shot-frame { background: #0f172a; border: 1px solid rgba(148, 163, 184, .25); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 100px rgba(2, 6, 23, .45); }
.ma-shot-frame img { display: block; width: 100%; height: auto; }
.ma-shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1e293b; }
.ma-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.ma-shot-bar i:nth-child(1) { background: #f87171; } .ma-shot-bar i:nth-child(2) { background: #fbbf24; } .ma-shot-bar i:nth-child(3) { background: #34d399; }
.ma-shot-bar span { margin-left: 10px; color: #94a3b8; font-size: 12px; font-weight: 600; }
.ma-tilt { transform: perspective(1600px) rotateY(-8deg) rotateX(3deg); transition: transform .5s ease; }
.ma-tilt:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }

.ma-section-alt { background: #eef2ff; }
.ma-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -24px 0 22px; }
.ma-tab { border: 1px solid var(--ma-line); background: #fff; color: #334155; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s; }
.ma-tab i { margin-right: 6px; color: var(--ma-primary); }
.ma-tab:hover { border-color: #c7d2fe; }
.ma-tab.active { background: linear-gradient(135deg, var(--ma-primary), var(--ma-primary-2)); color: #fff; border-color: transparent; box-shadow: 0 10px 24px rgba(91, 91, 240, .3); }
.ma-tab.active i { color: #fff; }
.ma-shot-panel { display: none; max-width: 1080px; margin: 0 auto; }
.ma-shot-panel.active { display: block; animation: ma-fade .35s ease; }
.ma-shot-caption { text-align: center; color: var(--ma-muted); font-size: 15px; margin: 0 0 18px; }
.ma-shot-caption b { color: var(--ma-ink); }
@keyframes ma-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ma-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.ma-step { background: #fff; border: 1px solid var(--ma-line); border-radius: 20px; padding: 28px; position: relative; }
.ma-step span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--ma-primary), #06b6d4); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 16px; }
.ma-step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.ma-step p { margin: 0; color: var(--ma-muted); font-size: 14.5px; line-height: 1.6; }

.ma-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 20px; align-items: stretch; }
.ma-price { background: #fff; border: 1px solid var(--ma-line); border-radius: 22px; padding: 28px 24px; display: flex; flex-direction: column; position: relative; }
.ma-price h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.ma-price-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.ma-price-amount small { font-size: 15px; font-weight: 700; color: var(--ma-muted); }
.ma-price-amount b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--ma-ink); }
.ma-price-amount span { color: var(--ma-muted); font-size: 14px; width: 100%; }
.ma-price-desc { color: var(--ma-muted); font-size: 14px; line-height: 1.55; min-height: 44px; margin: 0 0 16px; }
.ma-price ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; flex: 1; }
.ma-price li { font-size: 14px; color: #334155; }
.ma-price li i { color: #16a34a; margin-right: 8px; width: 14px; }
.ma-price .ma-btn { width: 100%; justify-content: center; }
.ma-price-popular { border: 2px solid var(--ma-primary); box-shadow: 0 30px 60px rgba(91, 91, 240, .18); transform: translateY(-8px); }
.ma-price-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--ma-primary), var(--ma-primary-2)); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.ma-btn-outline { color: var(--ma-primary) !important; background: #fff; border: 1.5px solid #c7d2fe; }
.ma-btn-outline:hover { background: #eef2ff; }

.ma-faq { max-width: 820px; }
.ma-faq details { background: #fff; border: 1px solid var(--ma-line); border-radius: 16px; padding: 0 22px; margin-bottom: 12px; }
.ma-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; color: var(--ma-ink); font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.ma-faq summary::-webkit-details-marker { display: none; }
.ma-faq summary::after { content: '+'; font-size: 22px; color: var(--ma-primary); transition: transform .2s; }
.ma-faq details[open] summary::after { transform: rotate(45deg); }
.ma-faq details p { margin: 0 0 18px; color: var(--ma-muted); line-height: 1.65; font-size: 15px; }

.ma-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; margin-bottom: 12px; }
.ma-footer-links a { color: rgba(255, 255, 255, .7) !important; font-weight: 500; }
.ma-footer-links a:hover { color: #fff !important; }
html { scroll-behavior: smooth; }

@media (max-width: 991px) {
    .ma-steps { grid-template-columns: 1fr; }
    .ma-tilt { transform: none; }
    .ma-price-popular { transform: none; }
}
@media (max-width: 600px) {
    .ma-tabs { margin-top: -30px; }
    .ma-tab { padding: 8px 12px; font-size: 13px; }
    .ma-section h2 { font-size: 28px; }
}
