/* ==========================================================================
   Flow Z Go — Public Website Production Stylesheet
   Modern, Enterprise-Grade SaaS Logistics Identity
   ========================================================================== */

/* Navbar */
.pub-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}


.pub-nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pub-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.pub-brand-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.pub-nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pub-nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.35rem 0.25rem;
    position: relative;
}

.pub-nav-link:hover,
.pub-nav-link.active {
    color: #0284c7;
}

.pub-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 2px;
}

.pub-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pub-btn-track {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pub-btn-track:hover {
    color: #0284c7;
    border-color: #0284c7;
    background: #e0f2fe;
}

.pub-btn-login {
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pub-btn-login:hover {
    color: #0284c7;
}

.pub-btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pub-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

/* Mobile Navigation & Header (64px - 72px) */
.pub-mobile-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pub-mobile-toggle:hover {
    border-color: #0284c7;
    color: #0284c7;
}

.pub-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.pub-mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.pub-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    box-shadow: -15px 0 40px rgba(15, 23, 42, 0.08);
    z-index: 2010;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.pub-mobile-drawer.active {
    transform: translateX(0);
}

.pub-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.pub-drawer-close {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.pub-drawer-close:hover {
    color: #0f172a;
    border-color: #94a3b8;
}

.pub-mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding: 1.25rem 0;
    margin: 0;
}

.pub-mobile-menu-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.5rem;
    color: #334155;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.pub-mobile-menu-item a:hover,
.pub-mobile-menu-item a.active {
    color: #0284c7;
}

.pub-mobile-menu-item a.active::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    margin-left: 8px;
}

.pub-drawer-secondary {
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.pub-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.25rem;
    position: relative;
}

.pub-drawer-actions::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 60px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Hero Section */
.pub-hero {
    position: relative;
    padding: 5rem 1.5rem 4rem;
    max-width: 1320px;
    margin: 0 auto;
}

.pub-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
}

.pub-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    color: var(--accent-cyan);
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pub-hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem 0;
    color: #0f172a;
}

.pub-hero p.lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 2rem 0;
    max-width: 580px;
}

.pub-hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.pub-btn-secondary {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pub-btn-secondary:hover {
    border-color: #0284c7;
    background: #f8fafc;
    color: #0284c7;
}

.pub-hero-trust {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.pub-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.pub-trust-item:hover {
    color: #0284c7;
    border-color: #38bdf8;
    background: #f0f9ff;
}

/* Browser Frame Mockup */
.pub-browser-mockup {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08), 0 0 0 1px #e2e8f0;
    position: relative;
    transition: transform 0.3s ease;
}

.pub-browser-bar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pub-browser-dots {
    display: flex;
    gap: 6px;
}

.pub-browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.pub-browser-dot.red { background: #ef4444; }
.pub-browser-dot.yellow { background: #f59e0b; }
.pub-browser-dot.green { background: #10b981; }

.pub-browser-url {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: #475569;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    direction: ltr;
    font-family: monospace;
}

.pub-browser-body {
    position: relative;
    overflow: hidden;
}

.pub-browser-body img {
    width: 100%;
    height: auto;
    display: block;
}

/* Tracking Bar Widget (Clean & Empty) */
.pub-tracking-section {
    max-width: 1000px;
    margin: -1.5rem auto 4rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.pub-tracking-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.pub-tracking-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.15rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pub-tracking-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pub-tracking-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 320px;
}

.pub-tracking-input {
    flex: 1;
    min-height: 50px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 0.8rem 1.15rem;
    border-radius: 11px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

.pub-tracking-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.pub-tracking-input:hover {
    border-color: #0284c7;
}

.pub-tracking-input:focus {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* Sections */
.pub-section {
    padding: 5rem 1.5rem;
    max-width: 1320px;
    margin: 0 auto;
}

.pub-section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}

.pub-section-badge {
    display: inline-block;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.pub-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.pub-section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Tenant Branding Showcase ("منصتك، بهويتك") */
.pub-tenant-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.pub-tenant-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.pub-tenant-card:hover {
    transform: translateY(-4px);
    border-color: #0284c7;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.1);
}

.pub-tenant-badge {
    font-size: 0.75rem;
    font-family: monospace;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
    direction: ltr;
}

.pub-tenant-card.emerald .pub-tenant-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pub-tenant-card.amber .pub-tenant-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.pub-tenant-card.cyan .pub-tenant-badge {
    background: rgba(0, 229, 255, 0.15);
    color: #00E5FF;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.pub-tenant-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.pub-tenant-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.pub-tenant-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.825rem;
    color: var(--text-muted);
}

.pub-tenant-features li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pub-tenant-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* E-Commerce Module Section with Real Products */
.pub-ecommerce-container {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 3rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.pub-ecommerce-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: center;
}

.pub-product-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pub-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.pub-product-card:hover {
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.12);
}

.pub-product-img {
    height: 130px;
    width: 100%;
    object-fit: cover;
    background: #f1f5f9;
    display: block;
}

.pub-product-info {
    padding: 0.85rem;
}

.pub-product-tag {
    font-size: 0.7rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 2px;
}

.pub-product-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pub-product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pub-product-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    font-family: var(--font-number);
}

.pub-product-add-btn {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0284c7;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Editorial Modules Layout (Not 9 identical cards) */
.pub-modules-editorial {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.pub-module-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pub-module-row.reversed {
    direction: ltr;
}

.pub-module-row.reversed > * {
    direction: rtl;
}

.pub-module-text h3 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1rem 0;
}

.pub-module-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.pub-module-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pub-module-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #334155;
}

/* How It Works (6 Steps) */
.pub-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pub-step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.pub-step-num {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(2, 132, 199, 0.25);
    font-family: var(--font-number);
    line-height: 1;
    margin-bottom: 1rem;
}

.pub-step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.pub-step-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Plans Preview (Homepage) & Pricing Comparison Page */
.pub-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.pub-plan-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.pub-plan-card:hover {
    border-color: #0284c7;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.1);
}

.pub-plan-card.featured {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.12);
}

.pub-plan-ribbon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #0284c7;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.pub-plan-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.pub-plan-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-height: 38px;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.pub-plan-price-box {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.pub-plan-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}

.pub-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pub-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Pricing Full Comparison Table */
.pub-table-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow-x: auto;
    margin-top: 3rem;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.pub-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: right;
}

.pub-comparison-table th,
.pub-comparison-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.pub-comparison-table th {
    background: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid #cbd5e1;
}

.pub-comparison-table td:not(:first-child),
.pub-comparison-table th:not(:first-child) {
    text-align: center;
}

/* Contact Page Form */
.pub-contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 3.5rem;
}

.pub-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.pub-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .pub-form-card {
        padding: 1.5rem 1.15rem;
    }
    .pub-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.pub-form-group {
    margin-bottom: 1.35rem;
    position: relative;
}

.pub-form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.45rem;
}

.pub-form-input,
.pub-form-select,
.pub-form-textarea,
.form-control,
input[type="text"].pub-form-input,
input[type="password"].pub-form-input,
input[type="email"].pub-form-input,
input[type="tel"].pub-form-input,
input[type="search"].pub-form-input,
input[type="date"].pub-form-input,
input[type="number"].pub-form-input {
    width: 100%;
    min-height: 50px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 0.82rem 1.15rem;
    border-radius: 11px;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

.pub-form-input::placeholder,
.pub-form-textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.pub-form-input:hover,
.pub-form-select:hover,
.pub-form-textarea:hover {
    border-color: #0284c7;
}

.pub-form-input:focus,
.pub-form-select:focus,
.pub-form-textarea:focus {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* Error validation styling */
.pub-form-input.is-invalid,
.has-error .pub-form-input,
.pub-input-error {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.pub-field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #EF4444;
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 0.4rem;
}

/* Success validation styling */
.pub-form-input.is-valid,
.pub-input-success {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.10) !important;
}

/* Select Dropdown Styling */
.pub-form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236F8199' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    padding-left: 2.75rem;
    padding-right: 1.15rem;
    cursor: pointer;
}

.pub-form-select option {
    background: #ffffff;
    color: #0f172a;
    padding: 0.5rem;
}

/* Textarea */
.pub-form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Password wrapper with RTL-safe toggle (Left-positioned) */
.pub-password-wrapper {
    position: relative;
    width: 100%;
}

.pub-password-wrapper input {
    padding-left: 3rem !important; /* leaves room for icon on the left (RTL) */
    padding-right: 1.15rem !important;
}

.pub-password-toggle {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748b;
    padding: 0.35rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s ease;
    z-index: 5;
}

.pub-password-toggle:hover {
    color: #0284c7;
}

/* Tracking Page Specifics */
.pub-tracking-search-bar {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
}

.pub-tracking-search-bar .pub-tracking-input {
    flex: 1;
    min-height: 52px;
}

.pub-tracking-search-bar .pub-btn-primary {
    min-height: 52px;
    white-space: nowrap;
    padding: 0 1.75rem;
}

@media (max-width: 640px) {
    .pub-tracking-search-bar {
        flex-direction: column;
    }
    .pub-tracking-search-bar .pub-tracking-input {
        min-height: 52px;
        width: 100%;
    }
    .pub-tracking-search-bar .pub-btn-primary {
        min-height: 52px;
        width: 100%;
        justify-content: center;
    }
    .pub-form-input,
    .pub-tracking-input,
    .pub-form-select,
    .pub-form-textarea {
        min-height: 52px;
        font-size: 1rem;
    }
}

.pub-contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pub-info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

/* Clean Production Login Page (No Demo Credentials) */
.pub-login-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    position: relative;
    background-size: cover;
    background-position: center;
}

.pub-login-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
}

.pub-login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

/* Footer */
.pub-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 4.5rem 1.5rem 2rem;
    color: #64748b;
}

.pub-footer-container {
    max-width: 1320px;
    margin: 0 auto;
}

.pub-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(5, 1fr);
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.pub-footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1rem 0 1.5rem 0;
    max-width: 320px;
}

.pub-footer-col h4 {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 1.25rem 0;
}

.pub-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pub-footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.pub-footer-links a:hover {
    color: #0284c7;
}

.pub-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
    .pub-hero-grid,
    .pub-ecommerce-grid,
    .pub-module-row,
    .pub-contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .pub-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pub-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .pub-nav-menu,
    .pub-nav-actions .pub-btn-track,
    .pub-nav-actions .pub-btn-primary {
        display: none;
    }

    .pub-mobile-toggle {
        display: flex;
    }

    .pub-btn-login {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
        background: #f1f5f9;
        border: 1px solid #cbd5e1;
        border-radius: 6px;
        color: #0f172a;
    }

    .pub-tenant-grid,
    .pub-steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .pub-hero h1 {
        font-size: 2.25rem;
    }

    .pub-pricing-grid,
    .pub-product-cards-grid {
        grid-template-columns: 1fr;
    }

    .pub-tracking-box {
        flex-direction: column;
        align-items: stretch;
    }

    .pub-tracking-form {
        flex-direction: column;
        min-width: 0;
    }
}
