:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #d1fae5;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}
html[data-theme="dark"] {
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-glass: rgba(30, 41, 59, 0.85);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
}
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
html {
scroll-behavior: smooth;
font-size: 16px;
}
body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
overflow-x: hidden;
display: flex;
flex-direction: column;
min-height: 100vh;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#intro-screen {
position: fixed;
inset: 0;
background: url('background.png') center/cover no-repeat;
background-color: var(--bg-main);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
}
.intro-overlay {
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.6) 100%);
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
}
.intro-content {
position: relative;
z-index: 1;
text-align: center;
padding: 2rem;
max-width: 600px;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
gap: 2rem;
}
.intro-logo {
width: 160px;
height: 160px;
object-fit: contain;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
animation: float 6s ease-in-out infinite, scaleIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
background: var(--bg-card);
padding: 1rem;
}
.intro-title {
color: #ffffff;
font-size: clamp(2rem, 5vw, 3.5rem);
font-weight: 800;
line-height: 1.2;
text-shadow: 0 4px 12px rgba(0,0,0,0.5);
animation: fadeUp 1s ease-out 0.3s both;
}
.btn-primary {
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
color: #ffffff;
border: none;
padding: 1.25rem 3rem;
font-size: 1.25rem;
font-weight: 700;
font-family: var(--font-sans);
border-radius: var(--radius-full);
cursor: pointer;
box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.5);
transition: var(--transition);
animation: fadeUp 1s ease-out 0.6s both;
display: inline-flex;
align-items: center;
gap: 0.75rem;
}
.btn-primary:hover {
transform: translateY(-3px) scale(1.02);
box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.6);
}
.btn-primary:active {
transform: translateY(1px);
}
#main-header {
display: none;
background: var(--bg-glass);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
z-index: 100;
animation: slideDown 0.5s ease-out forwards;
}
.header-container {
display: flex;
align-items: center;
padding: 1rem 1.5rem;
max-width: 1200px;
margin: 0 auto;
width: 100%;
}
.header-logo {
width: 44px;
height: 44px;
border-radius: var(--radius-sm);
margin-right: 1rem;
box-shadow: var(--shadow-sm);
background: #fff;
}
.header-title {
font-size: 1.25rem;
font-weight: 800;
background: linear-gradient(135deg, var(--text-main), var(--text-muted));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
#main-content {
  flex: 1;
  padding: 2rem 1.5rem;
  padding-bottom: 7rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}
.screen {
display: none;
opacity: 0;
transform: translateY(15px);
transition: opacity 0.4s ease, transform 0.4s ease;
}
.screen.active {
display: block;
opacity: 1;
transform: translateY(0);
}
.hero {
  --text-main: #ffffff;
  --text-muted: #d1d5db;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, rgba(16, 22, 21, .82), rgba(30, 39, 36, .72)), url('background.png');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
.hero-bg {
position: absolute;
inset: 0;
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
opacity: 0.1;
}
.hero-content {
position: relative;
padding: 3rem 2rem;
text-align: center;
z-index: 1;
}
.hero-content h2 {
font-size: 2.25rem;
font-weight: 800;
margin-bottom: 1rem;
color: var(--primary);
}
.hero-content p {
font-size: 1.125rem;
color: var(--text-muted);
max-width: 600px;
margin: 0 auto;
}
.cards-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
}
.card {
  background: var(--bg-card);
  padding: 0;
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main);
  overflow: hidden;
  position: relative;
}
html[data-theme="dark"] .card {
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background: var(--bg-card);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
html[data-theme="dark"] .card:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}
.card-cover {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: var(--primary);
}
.card-avatar {
  width: 90px;
  height: 90px;
  background: var(--bg-card);
  border-radius: 50%;
  margin-top: -45px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  position: relative;
  z-index: 2;
}
.card-icon {
  width: 100%;
  height: 100%;
  background: var(--bg-main);
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.card-icon svg {
  width: 36px;
  height: 36px;
}
.card-menu-dots {
  position: absolute;
  top: 135px;
  right: 20px;
  color: var(--text-muted);
}
.card-body {
  padding: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card-body h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}
.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.btn-card-action {
  background: #facc15;
  color: #1f2937;
  font-weight: 700;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  width: 100%;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  cursor: pointer;
}
.btn-card-action:hover {
  background: #eab308;
  transform: scale(1.02);
}
.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.section-title {
font-size: 1.75rem;
font-weight: 800;
margin-bottom: 2rem;
position: relative;
padding-bottom: 0.75rem;
color: var(--text-main);
}
.section-title::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 60px;
height: 4px;
background: linear-gradient(90deg, var(--primary), transparent);
border-radius: var(--radius-full);
}
.list-group {
list-style: none;
display: flex;
flex-direction: column;
gap: 1rem;
}
.list-item {
background: var(--bg-card);
padding: 1.25rem 1.5rem;
border-radius: var(--radius);
box-shadow: var(--shadow-sm);
cursor: pointer;
transition: var(--transition);
display: flex;
align-items: center;
justify-content: space-between;
border: 1px solid var(--border);
position: relative;
overflow: hidden;
}
.list-item::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 4px;
background: var(--primary);
transform: scaleY(0);
transition: transform 0.3s ease;
}
.list-item:hover {
transform: translateX(6px);
border-color: var(--primary);
box-shadow: var(--shadow-md);
}
.list-item:hover::before {
transform: scaleY(1);
}
.list-item span {
font-weight: 600;
font-size: 1.0625rem;
color: var(--text-main);
}
.list-item svg {
color: var(--text-muted);
transition: var(--transition);
}
.list-item:hover svg {
color: var(--primary);
transform: translateX(4px);
}
.list-item.visited-item {
  opacity: 0.75;
  background: var(--bg-main);
  border-color: transparent;
}
.list-item.visited-item span {
  font-weight: 500;
}
.search-box {
position: relative;
margin-bottom: 2rem;
}
.search-box input {
width: 100%;
padding: 1.25rem 1.25rem 1.25rem 3.5rem;
border-radius: var(--radius-full);
border: 2px solid var(--border);
background: var(--bg-card);
color: var(--text-main);
font-size: 1.0625rem;
font-family: var(--font-sans);
transition: var(--transition);
box-shadow: var(--shadow-sm);
}
.search-box input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}
.search-box svg {
position: absolute;
left: 1.25rem;
top: 50%;
transform: translateY(-50%);
color: var(--text-muted);
transition: var(--transition);
}
.search-box input:focus + svg {
color: var(--primary);
}
.empty-state {
text-align: center;
padding: 4rem 2rem;
color: var(--text-muted);
}
.empty-state svg {
margin-bottom: 1rem;
opacity: 0.5;
}
.btn-back {
background: var(--bg-card);
border: 1px solid var(--border);
color: var(--text-main);
font-size: 0.9375rem;
font-weight: 600;
padding: 0.75rem 1.25rem;
border-radius: var(--radius-full);
display: inline-flex;
align-items: center;
gap: 0.5rem;
cursor: pointer;
margin-bottom: 2rem;
transition: var(--transition);
box-shadow: var(--shadow-sm);
font-family: var(--font-sans);
}
.btn-back:hover {
background: var(--bg-main);
color: var(--primary);
transform: translateX(-4px);
border-color: var(--primary);
}
.detail-container {
background: var(--bg-card);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
border: 1px solid var(--border);
overflow: hidden;
}
.detail-header {
padding: 2rem 2rem 1.5rem;
border-bottom: 1px solid var(--border);
background: linear-gradient(to bottom, var(--bg-main), var(--bg-card));
}
.detail-title {
font-size: 2rem;
font-weight: 800;
line-height: 1.3;
color: var(--text-main);
margin-bottom: 0.5rem;
}
.detail-meta {
font-size: 0.875rem;
color: var(--text-muted);
font-weight: 500;
}
.detail-body {
padding: 2rem;
font-size: 1.125rem;
line-height: 1.8;
color: var(--text-main);
}
.detail-body p {
margin-bottom: 1.5rem;
}
.media-wrapper {
margin: 2rem 0;
border-radius: var(--radius);
overflow: hidden;
background: var(--bg-main);
border: 1px solid var(--border);
box-shadow: var(--shadow-sm);
}
.media-wrapper img {
width: 100%;
height: auto;
display: block;
object-fit: cover;
transition: transform 0.5s ease;
}
.media-wrapper img:hover {
transform: scale(1.02);
}
.media-wrapper iframe {
width: 100%;
aspect-ratio: 16/9;
border: none;
display: block;
}
.media-wrapper audio {
width: 100%;
height: 54px;
outline: none;
}
.pdf-wrapper {
width: 100%;
height: 600px;
border: 1px solid var(--border);
border-radius: var(--radius);
margin: 2rem 0;
overflow: hidden;
background: var(--bg-main);
}
.pdf-wrapper iframe, .pdf-wrapper embed {
  width: 100%;
  height: 100%;
  border: none;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 2rem 2rem;
  background: var(--bg-main);
  border-top: 1px solid var(--border);
  justify-content: center;
}
.detail-navigation {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.btn-action {
background: var(--bg-card);
border: 1px solid var(--border);
padding: 0.75rem 1.5rem;
border-radius: var(--radius-full);
display: flex;
align-items: center;
gap: 0.5rem;
cursor: pointer;
font-weight: 600;
font-size: 0.9375rem;
color: var(--text-main);
transition: var(--transition);
box-shadow: var(--shadow-sm);
font-family: var(--font-sans);
flex: 1;
justify-content: center;
max-width: 200px;
}
.btn-action:hover {
background: var(--bg-main);
border-color: var(--primary);
color: var(--primary);
transform: translateY(-2px);
box-shadow: var(--shadow);
}
.btn-action.active {
background: var(--primary-light);
color: var(--primary-dark);
border-color: var(--primary);
}
.btn-action.active svg {
fill: currentColor;
transform: scale(1.1);
}
.btn-action svg {
transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-action:active svg {
transform: scale(0.9);
}
#main-footer {
text-align: center;
padding: 2.5rem 1.5rem 6rem 1.5rem;
background: var(--bg-card);
border-top: 1px solid var(--border);
margin-top: auto;
}
.footer-content {
max-width: 800px;
margin: 0 auto;
}
.copyright {
font-size: 1rem;
color: var(--text-main);
margin-bottom: 0.5rem;
}
.powered {
font-size: 0.875rem;
color: var(--text-muted);
font-weight: 500;
letter-spacing: 0.5px;
text-transform: uppercase;
}
#bottom-nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: var(--bg-glass);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
display: flex;
justify-content: space-around;
padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.05);
z-index: 100;
border-top: 1px solid var(--border);
transition: transform 0.3s ease;
}
.nav-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.375rem;
color: var(--text-muted);
cursor: pointer;
transition: var(--transition);
flex: 1;
padding: 0.5rem;
border-radius: var(--radius);
-webkit-tap-highlight-color: transparent;
}
.nav-icon {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: var(--radius-full);
transition: var(--transition);
}
.nav-item span {
font-size: 0.75rem;
font-weight: 700;
transition: var(--transition);
}
.nav-item.active {
color: var(--primary);
}
.nav-item.active .nav-icon {
background: var(--primary-light);
color: var(--primary-dark);
transform: translateY(-4px);
}
.nav-item.active .nav-icon svg {
fill: currentColor;
fill-opacity: 0.2;
}
.nav-item:hover:not(.active) {
color: var(--text-main);
background: var(--bg-main);
}
@keyframes fadeUp {
from { opacity: 0; transform: translateY(40px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
from { opacity: 0; transform: scale(0.8); }
to { opacity: 1; transform: scale(1); }
}
@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
}
@keyframes slideDown {
from { transform: translateY(-100%); }
to { transform: translateY(0); }
}
@media (max-width: 768px) {
html { font-size: 14px; }
.intro-title { font-size: 2.5rem; }
.hero-content h2 { font-size: 2rem; }
.detail-header { padding: 1.5rem; }
.detail-body { padding: 1.5rem; }
.pdf-wrapper { height: 400px; }
.btn-action { max-width: none; }
}
@media (max-width: 480px) {
.intro-title { font-size: 2rem; }
.intro-logo { width: 120px; height: 120px; }
.btn-primary { padding: 1rem 2rem; font-size: 1.1rem; }
.cards-container { grid-template-columns: 1fr; }
.detail-actions { flex-direction: column; }
.btn-action { width: 100%; }
}

/* Landing page */
.landing-hero { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 2rem; background: linear-gradient(135deg, rgba(15,23,42,0.92), rgba(15,23,42,0.7)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path d="M20 0l20 20-20 20L0 20z" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>'); background-size: cover; position: relative; }
.landing-hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; margin-bottom: 1rem; }
.landing-hero p { color: rgba(255,255,255,0.8); font-size: 1.25rem; max-width: 600px; margin: 0 auto 2rem; }

/* Auth box */
.auth-container { max-width: 440px; margin: -3rem auto 3rem; position: relative; z-index: 10; }
.auth-box { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.auth-tabs { display: flex; }
.auth-tab { flex: 1; padding: 1rem; text-align: center; font-weight: 700; cursor: pointer; border: none; background: var(--bg-main); color: var(--text-muted); transition: var(--transition); font-family: var(--font-sans); font-size: 1rem; }
.auth-tab.active { background: var(--bg-card); color: var(--primary); border-bottom: 3px solid var(--primary); }
.auth-form { padding: 2rem; display: none; }
.auth-form.active { display: block; }

/* Form controls */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-main); font-size: 0.9375rem; }
.form-control { width: 100%; padding: 0.875rem 1rem; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-main); color: var(--text-main); font-size: 1rem; font-family: var(--font-sans); transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(16,185,129,0.15); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%2364748b" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>'); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; background-size: 16px; }

/* Flash messages */
.flash { padding: 1rem 1.5rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-weight: 600; animation: fadeUp 0.3s ease-out; position: relative; }
.flash-success { background: var(--primary-light); color: #065f46; border: 1px solid var(--primary); }
.flash-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.flash-close { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: inherit; opacity: 0.6; }

/* App grid (landing page published apps) */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; padding: 0; }
.app-card { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; transition: var(--transition); text-decoration: none; color: var(--text-main); }
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.app-card-icon { width: 100%; height: 140px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.app-card-icon img { width: 80px; height: 80px; object-fit: contain; border-radius: var(--radius-sm); }
.app-card-info { padding: 1.25rem; }
.app-card-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.app-card-info p { font-size: 0.85rem; color: var(--text-muted); }

/* Dashboard */
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.dashboard-stats { display: flex; gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg-card); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); flex: 1; text-align: center; }
.stat-card .stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

/* Dashboard app list */
.app-list-item { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; transition: var(--transition); }
.app-list-item:hover { box-shadow: var(--shadow); }
.app-list-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: contain; background: var(--primary-light); flex-shrink: 0; }
.app-list-info { flex: 1; min-width: 0; }
.app-list-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.125rem; }
.app-list-info p { font-size: 0.8rem; color: var(--text-muted); }
.badge { font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: var(--radius-full); }
.badge-published { background: var(--primary-light); color: #065f46; }
.badge-draft { background: #f1f5f9; color: #475569; }
.app-list-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; border-radius: var(--radius-full); border: 1px solid var(--border); background: var(--bg-card); color: var(--text-main); cursor: pointer; font-weight: 600; font-family: var(--font-sans); transition: var(--transition); text-decoration: none; display: inline-block; text-align: center; }
.btn-sm:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm.btn-danger { color: #dc2626; border-color: #fca5a5; }
.btn-sm.btn-danger:hover { background: #fee2e2; }
.btn-sm.btn-success { color: #065f46; background: var(--primary-light); border-color: var(--primary); }

/* Buttons general */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 1.75rem; border-radius: var(--radius-full); font-weight: 700; font-size: 1rem; font-family: var(--font-sans); cursor: pointer; transition: var(--transition); border: none; text-decoration: none; width: auto; }
.btn-primary-solid { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 4px 15px rgba(16,185,129,0.3); }
.btn-primary-solid:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16,185,129,0.4); color: #fff; }
.btn-outline { background: var(--bg-card); border: 2px solid var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 500; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.active { display: flex; }
.modal-box { background: var(--bg-card); border-radius: var(--radius-lg); padding: 2rem; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: fadeUp 0.3s ease-out; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-header h3 { font-size: 1.25rem; font-weight: 800; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 0.5rem; }

/* Page container for dashboard/editor pages */
.page-container { max-width: 1000px; margin: 0 auto; padding: 2rem 1.5rem; }
.page-header { background: var(--bg-glass); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.page-header-inner { max-width: 1000px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }

/* Preview watermark */
.preview-watermark { position: fixed; bottom: 1rem; right: 1rem; background: rgba(239,68,68,0.9); color: #fff; padding: 0.5rem 1.5rem; border-radius: var(--radius-full); font-weight: 700; font-size: 0.875rem; z-index: 9999; box-shadow: var(--shadow-md); pointer-events: none; }

/* Arabic text styling */
.arabic-text { font-family: 'Amiri', 'Scheherazade New', serif; font-size: 2rem; line-height: 2; direction: rtl; text-align: center; padding: 1.5rem; }

/* Landing Sections */
.landing-section { padding: 5rem 2rem; position: relative; }
.landing-section-alt { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.landing-container { max-width: 1200px; margin: 0 auto; width: 100%; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; color: var(--text-main); }
.section-header p { font-size: 1.125rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { background: var(--bg-main); padding: 2.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border); transition: var(--transition); text-align: center; position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); transform: scaleX(0); transition: transform 0.3s ease; transform-origin: left; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 72px; height: 72px; background: var(--primary-light); color: var(--primary-dark); border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transform: rotate(-5deg); transition: var(--transition); }
.feature-card:hover .feature-icon { transform: rotate(0) scale(1.1); }
.feature-icon svg { width: 36px; height: 36px; }
.feature-card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 1rem; color: var(--text-main); }
.feature-card p { color: var(--text-muted); line-height: 1.6; }

.advantage-row { display: flex; align-items: center; gap: 4rem; margin-bottom: 6rem; }
.advantage-row:last-child { margin-bottom: 0; }
.advantage-row.reverse { flex-direction: row-reverse; }
.advantage-content { flex: 1; }
.advantage-content h3 { font-size: 2rem; font-weight: 800; margin-bottom: 1.25rem; color: var(--text-main); }
.advantage-content p { font-size: 1.125rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; }
.advantage-list { list-style: none; padding: 0; }
.advantage-list li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; font-weight: 600; color: var(--text-main); }
.advantage-list li svg { color: var(--primary); flex-shrink: 0; }
.advantage-visual { flex: 1; position: relative; }
.advantage-visual-box { background: var(--bg-card); border-radius: var(--radius-lg); padding: 1rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border); position: relative; z-index: 2; transform: perspective(1000px) rotateY(-5deg); transition: var(--transition); }
.advantage-row.reverse .advantage-visual-box { transform: perspective(1000px) rotateY(5deg); }
.advantage-visual-box:hover { transform: perspective(1000px) rotateY(0) scale(1.02); }
.advantage-visual-blob { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; background: var(--primary-light); filter: blur(40px); opacity: 0.5; z-index: 1; border-radius: 50%; }

@media (max-width: 992px) {
    .advantage-row, .advantage-row.reverse { flex-direction: column; gap: 3rem; }
    .advantage-visual-box { transform: none !important; }
}
