
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Cairo:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;600;700&display=swap');
/* Note: DG Agnadeen is not available on Google Fonts. Using Tajawal as similar Arabic font alternative */

/* Dark Mode (Default) */
:root.dark-mode,
:root {
    --p: #00A887;
    --a: #99E6D8;
    --bg: #0D1821;
    --card: #16202A;
    --stroke: #243447;
    --txt: #F0F4F8;
    --txt-muted: #A8B8C8;
    
    /* Phoenix Colors */
    --phoenix-green: #00A887;
    --phoenix-mint: #99E6D8;
    --phoenix-black: #0B1220;
    --phoenix-white: #FFFFFF;
    
    /* Phoenix Gradient */
    --phoenix-gradient: linear-gradient(135deg, #00A887 0%, #99E6D8 100%);
    --phoenix-glow: 0 0 40px rgba(0, 168, 135, 0.4);
    
    /* Typography */
    --font-en: 'Montserrat', Arial, sans-serif;
    --font-ar: 'Tajawal', 'Cairo', Arial, sans-serif; /* Tajawal as alternative to DG Agnadeen */
}

/* Light Mode */
:root.light-mode {
    --p: #00A887;
    --a: #99E6D8;
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --stroke: #CBD5E1;
    --txt: #0F172A;
    --txt-muted: #64748B;
    
    /* Phoenix Colors */
    --phoenix-green: #00A887;
    --phoenix-mint: #99E6D8;
    --phoenix-black: #0B1220;
    --phoenix-white: #FFFFFF;
    
    /* Phoenix Gradient */
    --phoenix-gradient: linear-gradient(135deg, #00A887 0%, #99E6D8 100%);
    --phoenix-glow: 0 0 40px rgba(0, 168, 135, 0.4);
    
    /* Typography */
    --font-en: 'Montserrat', Arial, sans-serif;
    --font-ar: 'Tajawal', 'Cairo', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--txt);
    font-family: var(--font-ar), -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Noto Sans Arabic', Arial, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

*:before,
*:after {
    box-sizing: border-box;
}

/* RTL/LTR Support */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="ltr"] {
    direction: ltr;
    font-family: var(--font-en), -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Arial, sans-serif;
}

html[dir="ltr"] .container {
    text-align: left;
}

html[dir="ltr"] .hero-text {
    text-align: center;
}

html[dir="ltr"] .hero-text h1 {
    text-align: center;
}

html[dir="ltr"] .hero-text p {
    text-align: center;
}

html[dir="ltr"] nav {
    flex-direction: row;
}

html[dir="ltr"] .preview-sidebar {
    border-left: 1px solid var(--stroke);
    border-right: none;
}

html[dir="ltr"] .preview-nav-item.active {
    border-left-color: var(--p);
    border-right-color: transparent;
}

/* English text uses Montserrat */
.text-en, [lang="en"], .brand .en-text {
    font-family: var(--font-en);
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 168, 135, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(153, 230, 216, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

/* Modern Topbar - SaaS Style */
.topbar {
    display: grid;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--stroke);
    background: rgba(19, 24, 39, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 168, 135, 0.1), 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: visible;
}

/* Fixed Grid Layout - Same columns for both directions */
.topbar {
    grid-template-columns: auto 1fr auto;
}

/* LTR: من اليسار إلى اليمين = Brand (col 1) | Navigation (col 2) | Lang/Currency (col 3) */
html[dir="ltr"] .topbar {
    direction: ltr;
}

html[dir="ltr"] .topbar .brand {
    grid-column: 1;
    justify-self: start;
}

html[dir="ltr"] .topbar .topbar-center {
    grid-column: 2;
    justify-self: center;
}

html[dir="ltr"] .topbar .topbar-right {
    grid-column: 3;
    justify-self: end;
}

/* RTL: من اليمين إلى اليسار = Brand (col 1 يمين) | Navigation (col 2 وسط) | Lang/Currency (col 3 يسار) */
/* في RTL، Grid يعكس تلقائياً، لذا col 1 = يمين، col 3 = يسار */
html[dir="rtl"] .topbar {
    direction: rtl;
}

html[dir="rtl"] .topbar .brand {
    grid-column: 1;
    justify-self: start;
}

html[dir="rtl"] .topbar .topbar-center {
    grid-column: 2;
    justify-self: center;
}

html[dir="rtl"] .topbar .topbar-right {
    grid-column: 3;
    justify-self: end;
}

.topbar-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.topbar-center nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* RTL: Lang/Currency should align to start (left side) */
html[dir="rtl"] .topbar-right {
    justify-content: flex-start;
}

/* LTR: Lang/Currency should align to end (right side) */
html[dir="ltr"] .topbar-right {
    justify-content: flex-end;
}

/* Dark Mode Toggle Button for Public Pages */
.dark-mode-toggle-public {
    background: var(--card) !important;
    border: 1px solid var(--stroke) !important;
    color: var(--txt) !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    transition: all 0.3s !important;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.dark-mode-toggle-public:hover {
    background: rgba(0, 168, 135, 0.1) !important;
    border-color: var(--p) !important;
    color: var(--p) !important;
    transform: scale(1.1);
}

.dark-mode-toggle-public:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 168, 135, 0.2);
}

.topbar:hover {
    box-shadow: 0 1px 0 rgba(0, 168, 135, 0.2), 0 12px 40px rgba(0, 0, 0, 0.5);
}

.brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: row;
}

.brand img {
    height: 36px;
    max-height: 36px;
    width: auto;
    max-width: 120px;
    min-width: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 168, 135, 0.3));
    flex-shrink: 0;
    display: block;
    vertical-align: middle;
    margin: 0;
}

.brand a {
    color: var(--txt);
    text-decoration: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: row;
    transition: all 0.3s;
}

html[dir="rtl"] .brand a {
    flex-direction: row;
}

html[dir="ltr"] .brand a {
    flex-direction: row;
}

.brand a:hover {
    transform: translateY(-2px);
}

.brand-text {
    display: flex;
    align-items: center;
    gap: 0;
    line-height: 1;
    flex-direction: row;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Brand Logo Styles */
.brand-logo-img {
    max-height: 32px;
    width: auto;
    max-width: 120px;
    min-width: 32px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    vertical-align: middle;
    margin: 0;
}

.brand-logo-default {
    filter: drop-shadow(0 2px 8px rgba(0, 168, 135, 0.4));
}

/* Brand Text Styles */
.brand-text-primary {
    color: var(--p);
    font-weight: 700;
    font-size: 20px;
}

.brand-text-separator {
    color: var(--txt-muted);
    font-weight: 500;
    margin: 0 4px;
}

.brand-text-accent {
    color: var(--a);
    font-weight: 700;
    font-size: 20px;
}

nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

nav a {
    color: var(--txt-muted);
    margin-inline: 2px;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--phoenix-gradient);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--txt);
    background: rgba(0, 168, 135, 0.1);
}

nav a:hover::before {
    width: 60%;
}

nav a.active {
    color: var(--p);
    background: rgba(0, 168, 135, 0.15);
}

nav a.active::before {
    width: 80%;
}

/* Hero Section - Modern SaaS Style */
.hero-landing {
    padding: 120px 0 140px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero-landing::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 168, 135, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse-bg 8s ease-in-out infinite;
}

.hero-landing::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(153, 230, 216, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse-bg 10s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.6; }
    50% { transform: scale(1.2) translate(20px, -20px); opacity: 0.8; }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 72px;
    font-weight: 900;
    margin: 0 0 24px 0;
    line-height: 1.05;
    letter-spacing: -3px;
    text-align: center;
}

.hero-text h1 span:first-child {
    background: var(--phoenix-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-text h1 span:last-child {
    color: var(--a);
}

.hero-subtitle {
    font-size: 32px;
    color: var(--a);
    margin: 0 0 32px 0;
    font-weight: 700;
    letter-spacing: -1px;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 168, 135, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 168, 135, 0.2);
    text-align: center;
}

.hero-description {
    font-size: 20px;
    color: var(--txt-muted);
    line-height: 1.8;
    margin-bottom: 48px;
    max-width: 580px;
    font-weight: 400;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Modern Buttons - SaaS Style */
.btn {
    background: var(--phoenix-gradient);
    color: #fff;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 168, 135, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.2px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 168, 135, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--phoenix-gradient);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--p);
    color: var(--p);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--phoenix-gradient);
    color: #fff;
    border-color: transparent;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* Floating Card Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-card {
    background: var(--phoenix-gradient);
    padding: 50px;
    border-radius: 28px;
    text-align: center;
    color: #fff;
    box-shadow: var(--phoenix-glow);
    animation: float 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.floating-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(2deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.card-icon {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

/* Features Section - SaaS Style */
.features-section {
    padding: 120px 0;
    margin: 100px 0;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: var(--phoenix-gradient);
    border-radius: 2px;
}

.section-title {
    text-align: center;
    font-size: 52px;
    margin-bottom: 80px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--phoenix-gradient);
    margin: 24px auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 36px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--phoenix-gradient);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 168, 135, 0.2);
    border-color: var(--p);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 24px;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(0, 168, 135, 0.3));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.feature-card h3 {
    color: var(--p);
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 700;
}

.feature-card p {
    color: var(--txt-muted);
    line-height: 1.7;
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 32px;
    margin: 24px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 12px 48px rgba(0, 168, 135, 0.15);
}

.card h3 {
    margin-top: 0;
    color: var(--p);
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Forms */
.grid, .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--txt);
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid var(--stroke);
    background: rgba(19, 24, 39, 0.8);
    color: var(--txt);
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--p);
    background: var(--card);
    box-shadow: 0 0 0 4px rgba(0, 168, 135, 0.1);
    transform: translateY(-2px);
}

input::placeholder, textarea::placeholder {
    color: var(--txt-muted);
}

/* Tables */
.table {
    margin: 24px 0;
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--stroke);
}

.table .t-head {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding: 20px;
    background: rgba(0, 168, 135, 0.1);
    font-weight: 700;
    color: var(--p);
    border-bottom: 2px solid var(--stroke);
}

.table .t-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--stroke);
    transition: all 0.2s;
}

.table .t-row:last-child {
    border-bottom: none;
}

.table .t-row:hover {
    background: rgba(0, 168, 135, 0.08);
    transform: translateX(4px);
}

.table .t-row a {
    color: var(--p);
    text-decoration: none;
    font-weight: 600;
}

.table .t-row a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid;
    font-weight: 500;
}

.alert.success {
    background: rgba(0, 168, 135, 0.15);
    border-color: var(--p);
    color: var(--a);
}

/* Typography */
h1, h2, h3 {
    color: var(--txt);
    font-weight: 800;
}

h1 {
    font-size: 48px;
    margin-bottom: 32px;
    letter-spacing: -1px;
    text-align: center;
}

h2 {
    font-size: 36px;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    text-align: center;
}

h3 {
    font-size: 24px;
    margin-bottom: 16px;
    text-align: center;
}

/* Ensure headings are centered in both RTL and LTR */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3 {
    text-align: center;
}

/* Footer - Modern Organized Style */
.main-footer {
    background: var(--card);
    border-top: 1px solid var(--stroke);
    padding: 0;
    margin-top: 120px;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: var(--phoenix-gradient);
    border-radius: 2px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 40px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    gap: 20px;
    align-items: center;
    text-align: center;
}

.footer-phoenix-logo {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.phoenix-logo-img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 168, 135, 0.3));
    transition: transform 0.3s ease;
}

.phoenix-logo-img:hover {
    transform: scale(1.05);
}

.footer-brand-title {
    font-size: 22px;
    font-weight: 800;
    background: var(--phoenix-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 8px 0;
}

.footer-brand-tagline {
    color: var(--txt-muted);
    font-size: 14px;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.footer-social-media {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 168, 135, 0.1);
    border: 1px solid rgba(0, 168, 135, 0.2);
    color: var(--p);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-link:hover {
    background: var(--phoenix-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 135, 0.3);
}

.footer-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--txt);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--stroke);
    position: relative;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--phoenix-gradient);
    border-radius: 2px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list li {
    margin: 0;
}

.footer-links-list a {
    color: var(--txt-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links-list a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
    color: var(--p);
}

.footer-links-list a:hover {
    color: var(--p);
    padding-right: 8px;
}

.footer-links-list a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    border-top: 1px solid var(--stroke);
    padding-top: 30px;
    margin-top: 40px;
}

.footer-powered-by {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--stroke);
}

.powered-by-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.powered-by-icon {
    width: 32px;
    height: 32px;
    opacity: 0.8;
}

.powered-by-text {
    margin: 0;
    color: var(--txt-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.powered-by-text strong {
    color: var(--txt);
    font-weight: 600;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    color: var(--txt-muted);
    font-size: 14px;
}

.footer-copyright strong {
    color: var(--txt);
    font-weight: 600;
}

/* Responsive Footer */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer-container {
        padding: 40px 20px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        text-align: center;
        align-items: center;
    }
    
    .phoenix-badge {
        margin: 12px auto 0;
    }
}

/* Booking Section */
.booking-section {
    margin: 80px 0;
}

.booking-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 80px rgba(0, 168, 135, 0.1);
}

.booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.booking-header h2 {
    font-size: 40px;
    background: var(--phoenix-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

/* Company Section */
.company-section {
    padding: 100px 0;
    margin: 80px 0;
    text-align: center;
    position: relative;
}

.company-info {
    max-width: 700px;
    margin: 0 auto;
}

.company-logo-large {
    margin-bottom: 32px;
}

.company-logo-large img {
    filter: drop-shadow(var(--phoenix-glow));
}

.company-info h2 {
    font-size: 42px;
    background: var(--phoenix-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.company-tagline {
    font-size: 20px;
    color: var(--txt-muted);
    margin-bottom: 40px;
}

.company-details {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    text-align: right;
}

.company-details p {
    margin: 16px 0;
    font-size: 16px;
}

.company-details a {
    color: var(--p);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.company-details a:hover {
    color: var(--a);
    text-decoration: underline;
}

.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(0, 168, 135, 0.15);
    border: 2px solid var(--p);
    border-radius: 30px;
    font-weight: 700;
    color: var(--a);
    font-size: 16px;
}

/* Responsive - SaaS Style */
@media (max-width: 968px) {
    .container {
        padding: 0 24px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-text h1 {
        font-size: 56px;
        letter-spacing: -2px;
    }
    
    .hero-subtitle {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 42px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--stroke);
    color: var(--txt);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 168, 135, 0.1);
    border-color: var(--p);
}

@media (max-width: 968px) {
    .topbar {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        padding: 12px 16px;
        position: relative;
    }
    
    .brand {
        order: 1;
        flex-shrink: 0;
        max-width: 150px;
        overflow: hidden;
    }
    
    .brand-text {
        font-size: 16px;
    }
    
    .brand-text-primary,
    .brand-text-accent {
        font-size: 16px;
    }
    
    /* Hamburger Menu Button */
    .mobile-menu-toggle {
        display: block;
        order: 2;
        justify-self: center;
        margin: 0 auto;
    }
    
    .topbar-center {
        order: 3;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card);
        border-top: 1px solid var(--stroke);
        padding: 16px;
        display: none;
        flex-direction: column;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .topbar-center.active {
        display: flex;
    }
    
    .topbar-center nav {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .topbar-center nav a {
        width: 100%;
        padding: 12px 16px;
        border-radius: 8px;
        text-align: right;
        border: 1px solid transparent;
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: flex-start;
    }
    
    html[dir="ltr"] .topbar-center nav a {
        text-align: left;
        justify-content: flex-start;
    }
    
    .topbar-center nav a:hover,
    .topbar-center nav a.active {
        background: rgba(0, 168, 135, 0.1);
        border-color: var(--p);
    }
    
    .topbar-right {
        order: 4;
        flex-shrink: 0;
        gap: 8px;
    }
    
    .user-menu {
        padding: 4px 8px;
    }
    
    .user-info {
        display: none; /* Hide on tablet */
    }
}

@media (min-width: 969px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .topbar-center {
        display: flex !important;
        position: static !important;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 12px 16px;
        grid-template-columns: auto 1fr auto;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .brand {
        gap: 8px;
        max-width: 120px;
        overflow: hidden;
    }
    
    .brand-text {
        display: none; /* Hide brand text on small screens */
    }
    
    .brand-logo-img {
        max-height: 28px;
        min-width: 28px;
        max-width: 100px;
    }
    
    .topbar-right {
        gap: 8px;
        flex-shrink: 0;
    }
    
    .dark-mode-toggle-public {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    nav {
        gap: 4px;
    }
    
    nav a {
        padding: 8px 16px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .user-menu {
        gap: 6px;
        flex-shrink: 0;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .user-info {
        display: none; /* Hide user info text on small screens */
    }
    
    .hero-landing {
        padding: 80px 0 100px;
    }
    
    .hero-text h1 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }
    
    .hero-subtitle {
        font-size: 24px;
        padding: 6px 16px;
    }
    
    .hero-description {
        font-size: 17px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .features-section {
        padding: 80px 0;
    }
    
    .booking-card {
        padding: 32px 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 20px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--p);
    color: #fff;
}

/* Dashboard Styles - DISABLED: Using dashboard.css instead */
/* These styles are now in dashboard.css with .dashboard-page prefix */
/*
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.welcome-section {
    background: var(--phoenix-gradient);
    padding: 24px;
    border-radius: 16px;
    color: #fff;
    margin-bottom: 32px;
}

.welcome-section h1 {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 32px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.kpi-card {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--phoenix-gradient);
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 168, 135, 0.2);
}

.kpi-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--p);
*/

/* Dashboard-specific enhancements - DISABLED: All dashboard styles moved to dashboard.css */
/* Dashboard styles are now exclusively in dashboard.css to avoid conflicts */

/* ============================================
   Public Header User Menu Styles
   ============================================ */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.2s;
    margin-left: 16px;
    flex-shrink: 0;
}

.user-menu:hover {
    background: rgba(0, 168, 135, 0.1);
}

.user-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid var(--p) !important;
    background: var(--card) !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.user-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

html[dir="rtl"] .user-info {
    flex-direction: row-reverse;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--txt);
    line-height: 1.2;
    white-space: nowrap;
}

.user-role {
    font-size: 12px;
    color: var(--txt-muted);
    line-height: 1.2;
    white-space: nowrap;
}

.user-role::before {
    content: '•';
    margin: 0 6px;
    color: var(--txt-muted);
    opacity: 0.5;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

html[dir="rtl"] .user-dropdown {
    right: 0;
    left: auto;
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--txt);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.user-dropdown-item:hover {
    background: rgba(0, 168, 135, 0.1);
    color: var(--p);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--stroke);
    margin: 8px 0;
}

.user-dropdown-header-item {
    pointer-events: none;
    opacity: 0.7;
}

.user-dropdown-header-content {
    flex: 1;
}

.user-dropdown-header-name {
    font-weight: 600;
}

.user-dropdown-header-email {
    font-size: 12px;
    color: var(--txt-muted);
}

.user-dropdown-logout {
    color: #ff6b6b;
}

.user-dropdown-logout:hover {
    color: #ff5252;
    background: rgba(255, 107, 107, 0.1);
}

.chevron {
    transition: transform 0.2s;
    font-size: 12px;
    color: var(--txt-muted);
}

.user-menu.active .chevron {
    transform: rotate(180deg);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--stroke);
    color: var(--txt);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 168, 135, 0.1);
    border-color: var(--p);
}

@media (max-width: 768px) {
    .user-info {
        display: none;
    }
    
    .user-menu {
        padding: 8px;
    }
}

@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Ensure Bootstrap Icons are visible on all pages */
.bi,
[class^="bi-"],
[class*=" bi-"] {
    display: inline-block !important;
    font-family: "bootstrap-icons" !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    vertical-align: -.125em !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    speak: none !important;
}

/* Ensure images and logos are visible on all pages */
img,
.brand-logo-img,
.phoenix-logo-img,
/* User avatar already defined above with specific sizing */
.sidebar-logo {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

.brand-logo-img {
    max-height: 32px !important;
    width: auto !important;
    min-width: 32px !important;
}

.phoenix-logo-img {
    height: 60px !important;
    width: auto !important;
}

/* ============================================
   Pricing Page - Override Bootstrap Grid
   ============================================
   Force horizontal layout for pricing plans
   ============================================ */

/* Override Bootstrap grid on pricing page */
.pricing-plans-container,
.pricing-plans-container.row,
.pricing-plans-container > .row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    justify-content: center !important;
    align-items: stretch !important;
}

.pricing-plans-container > *,
.pricing-plans-container .pricing-plan-item,
.pricing-plans-container [class*="col"] {
    flex: 1 1 300px !important;
    min-width: 300px !important;
    max-width: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    position: relative !important;
}

/* Override Bootstrap grid for payment methods */
.payment-methods-list,
.payment-methods-list.row,
.payment-methods-list > .row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.payment-methods-list > *,
.payment-methods-list .payment-method-item,
.payment-methods-list [class*="col"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    display: block !important;
    float: none !important;
    clear: both !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ============================================
   GDPR/Cookies Page Styles - Phoenix Brand Identity
   ============================================ */

/* إزالة الخلفية من صفحة GDPR/Cookies */
body.gdpr-page::before {
    display: none !important;
    content: none !important;
}

body.gdpr-page {
    background: var(--bg, #0D1821) !important;
}

/* تحسين عرض الهوية في الهيدر */
.gdpr-page .topbar {
    position: relative;
    z-index: 1000;
    background: var(--card, #16202A) !important;
    border-bottom: 1px solid var(--stroke, #243447) !important;
}

/* التأكد من ظهور الهوية بشكل واضح */
.gdpr-page .brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.gdpr-page .brand-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.gdpr-page .brand-link:hover {
    transform: translateY(-2px) !important;
    opacity: 0.9 !important;
}

.gdpr-page .brand-logo-img {
    display: block !important;
    height: 32px !important;
    max-height: 32px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 8px rgba(0, 168, 135, 0.4)) !important;
}

.gdpr-page .brand-text {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.gdpr-page .brand-text-primary {
    color: var(--p, #00A887) !important;
    font-weight: 700 !important;
    font-size: 20px !important;
}

.gdpr-page .brand-text-separator {
    color: var(--txt-muted, #A8B8C8) !important;
    font-weight: 500 !important;
    margin: 0 4px !important;
}

.gdpr-page .brand-text-accent {
    color: var(--a, #99E6D8) !important;
    font-weight: 700 !important;
    font-size: 20px !important;
}

/* تطبيق ألوان هوية Phoenix على صفحة GDPR/Cookies */
/* Phoenix Primary: #00A887 (أخضر فيروزي) */
/* Phoenix Accent: #99E6D8 (أخضر نعناعي) */

.gdpr-page .bg-primary {
    background-color: var(--p, #00A887) !important;
    background: linear-gradient(135deg, var(--p, #00A887) 0%, var(--a, #99E6D8) 100%) !important;
}

.gdpr-page .text-primary {
    color: var(--p, #00A887) !important;
}

.gdpr-page .border-primary {
    border-color: var(--p, #00A887) !important;
}

.gdpr-page .border-primary.border-opacity-25 {
    border-color: rgba(0, 168, 135, 0.25) !important;
}

/* تغيير ألوان Info لتطابق هوية Phoenix (استخدام Accent) */
.gdpr-page .bg-info {
    background-color: var(--a, #99E6D8) !important;
    background: linear-gradient(135deg, var(--a, #99E6D8) 0%, var(--p, #00A887) 100%) !important;
}

.gdpr-page .text-info {
    color: var(--a, #99E6D8) !important;
}

.gdpr-page .border-info {
    border-color: var(--a, #99E6D8) !important;
}

.gdpr-page .border-info.border-opacity-25 {
    border-color: rgba(153, 230, 216, 0.25) !important;
}

.gdpr-page .bg-info.bg-opacity-10 {
    background-color: rgba(153, 230, 216, 0.1) !important;
}

.gdpr-page .alert-info {
    background-color: rgba(153, 230, 216, 0.15) !important;
    border-color: rgba(153, 230, 216, 0.3) !important;
    color: var(--txt, #F0F4F8) !important;
}

.gdpr-page .btn-info {
    background-color: var(--a, #99E6D8) !important;
    border-color: var(--a, #99E6D8) !important;
    color: var(--bg, #0D1821) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.gdpr-page .btn-info:hover {
    background-color: var(--p, #00A887) !important;
    border-color: var(--p, #00A887) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 168, 135, 0.3) !important;
}

/* تحسين بطاقات الحقوق */
.gdpr-page .card.border-primary {
    transition: all 0.3s ease !important;
}

.gdpr-page .card.border-primary:hover {
    border-color: var(--p, #00A887) !important;
    box-shadow: 0 4px 16px rgba(0, 168, 135, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* تحسين الجدول */
.gdpr-page .table thead.table-light {
    background-color: rgba(0, 168, 135, 0.1) !important;
    color: var(--txt, #F0F4F8) !important;
}

.gdpr-page .table-bordered {
    border-color: var(--stroke, #243447) !important;
}

.gdpr-page .table-bordered th,
.gdpr-page .table-bordered td {
    border-color: var(--stroke, #243447) !important;
}

/* تحسين الأزرار */
.gdpr-page .btn-primary {
    background-color: var(--p, #00A887) !important;
    border-color: var(--p, #00A887) !important;
    color: #fff !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.gdpr-page .btn-primary:hover {
    background-color: var(--a, #99E6D8) !important;
    border-color: var(--a, #99E6D8) !important;
    color: var(--bg, #0D1821) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 168, 135, 0.3) !important;
}

/* إزالة الخلفية البيضاء من البطاقات والمحتوى */
.gdpr-page .card {
    background: transparent !important;
    background-color: transparent !important;
    border-color: var(--stroke, #243447) !important;
}

.gdpr-page .card-body {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--txt, #F0F4F8) !important;
}

.gdpr-page .card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--stroke, #243447) !important;
}

.gdpr-page .card-header.bg-primary {
    background: linear-gradient(135deg, var(--p, #00A887) 0%, var(--a, #99E6D8) 100%) !important;
    border-bottom: none !important;
}

.gdpr-page .card-header.bg-info {
    background: linear-gradient(135deg, var(--a, #99E6D8) 0%, var(--p, #00A887) 100%) !important;
    border-bottom: none !important;
}

.gdpr-page .container {
    background: transparent !important;
}

.gdpr-page .content {
    color: var(--txt, #F0F4F8) !important;
}

.gdpr-page .content p,
.gdpr-page .content li,
.gdpr-page .content ul,
.gdpr-page .content ol {
    color: var(--txt, #F0F4F8) !important;
}

.gdpr-page .table {
    background: transparent !important;
    color: var(--txt, #F0F4F8) !important;
}

.gdpr-page .table td,
.gdpr-page .table th {
    background: transparent !important;
    color: var(--txt, #F0F4F8) !important;
}

.gdpr-page .table thead.table-light {
    background-color: rgba(0, 168, 135, 0.1) !important;
    color: var(--txt, #F0F4F8) !important;
}

.gdpr-page .table tbody tr {
    background: transparent !important;
}

.gdpr-page .table tbody tr:hover {
    background-color: rgba(0, 168, 135, 0.05) !important;
}
