/* Logo Styles - خط مميز */
.logo-link {
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.logo-main {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-transform: uppercase;
}

/* في الصفحة الرئيسية (Header) - أزرق غامق على خلفية بيضاء */
.header .logo-text .logo-main {
    color: #1E40AF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* في Sidebar - أبيض على خلفية خضراء */
.sidebar .logo-text .logo-main {
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* في صفحات Auth - أزرق غامق على خلفية بيضاء */
.auth-container .logo-text .logo-main {
    color: #1E40AF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* في Footer - أبيض على خلفية سوداء */
.footer .logo-text .logo-main {
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sawyan-home-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.sawyan-home-logo:hover {
    opacity: 0.85;
}

.auth-top-nav {
    box-sizing: border-box;
    position: sticky;
    top: var(--sawyan-ribbon-h, 0px);
    z-index: 900;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .auth-top-nav {
    background: rgba(15, 23, 42, 0.95);
    border-color: #334155;
}

.auth-top-nav-inner {
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-home-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.auth-home-pill:hover {
    background: #d1fae5;
}

@media (max-width: 600px) {
    .auth-top-nav-inner {
        padding: 8px 12px;
        gap: 8px;
    }

    .auth-top-nav .sawyan-brand-mark .sawyan-app-icon-svg {
        width: 26px !important;
        height: 26px !important;
    }

    .auth-top-nav .sawyan-brand-mark .sawyan-wordmark-svg {
        height: 20px !important;
        width: auto !important;
    }

    .auth-top-nav .sawyan-brand-mark .sawyan-brand-slogan {
        display: none !important;
    }

    .auth-home-pill {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
}

.sawyan-brand-slogan[dir="ltr"] {
    font-family: 'Poppins', sans-serif !important;
}