/* *****************************************************
   ParsHost Theme — Design tokens + global overrides
   Based on IRClub glass / emerald design system
***************************************************** */

@font-face {
    font-family: 'IRANYekanXVF';
    src: url('../fonts/IRANYekanXVF.woff2') format('woff2'),
         url('../fonts/IRANYekanXVF.woff') format('woff');
    font-weight: 100 1000;
    font-display: swap;
}

:root {
    --white: #fff;

    --neutral-50: #f0fdf4;
    --neutral-100: #ecfdf5;
    --neutral-200: #d1fae5;
    --neutral-300: #a7f3d0;
    --neutral-400: #6b7280;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #064e3b;
    --neutral-950: #022c22;

    --primary-50: #ecfdf5;
    --primary-100: #d1fae5;
    --primary-200: #a7f3d0;
    --primary-300: #6ee7b7;
    --primary-400: #34d399;
    --primary-500: #10b981;
    --primary-600: #059669;
    --primary-700: #047857;
    --primary-800: #065f46;
    --primary-900: #064e3b;
    --primary-950: #022c22;

    --primary: #059669;
    --primary-lifted: #047857;
    --primary-accented: #065f46;

    --secondary: #0d9488;
    --secondary-lifted: #0f766e;
    --secondary-accented: #115e59;

    --success: #10b981;
    --success-lifted: #059669;
    --success-accented: #047857;

    --info: #06b6d4;
    --info-lifted: #0891b2;
    --info-accented: #0e7490;

    --notice: #0d9488;
    --notice-lifted: #0f766e;
    --notice-accented: #115e59;

    --warning: #f59e0b;
    --warning-lifted: #d97706;
    --warning-accented: #b45309;

    --error: #ef4444;
    --error-lifted: #dc2626;
    --error-accented: #b91c1c;

    --grayscale: var(--neutral-800);
    --grayscale-lifted: var(--neutral-700);
    --grayscale-accented: var(--neutral-600);

    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    --text-inverted: var(--white);
    --text-muted: #9ca3af;
    --text-lifted: #6b7280;
    --text-accented: #4b5563;
    --text: #1f2937;

    --border-muted: rgba(16, 185, 129, 0.12);
    --border: #e5e7eb;
    --border-lifted: rgba(16, 185, 129, 0.25);
    --border-accented: #059669;

    --bg: #ffffff;
    --bg-muted: #f0fdf4;
    --bg-lifted: #ecfeff;
    --bg-accented: #d1fae5;
    --bg-inverted: #064e3b;

    --yellow-200: #fde68a;
    --yellow-300: #fcd34d;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --emerald-300: #6ee7b7;
    --pink-400: #fb64b6;

    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;

    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    --rounding-sm: 0;
    --rounding-md: 0;
    --rounding-lg: 0;

    --letter-spacing: 0em;
    --disabled-opacity: 25%;

    --ph-emerald: #10b981;
    --ph-emerald-dark: #059669;
    --ph-teal: #06b6d4;
    --ph-glass: rgba(255, 255, 255, 0.65);
    --ph-glass-strong: rgba(255, 255, 255, 0.85);
    --ph-sidebar-width: 280px;
    --ph-font: 'IRANYekanXVF', 'Tahoma', 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ph-font) !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 50%, #f0fdfa 100%) !important;
    background-attachment: fixed !important;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body,
body.rtl {
    direction: rtl;
    text-align: right;
}

h1, h2, h3, h4, h5, h6,
.card-title,
.panel-title {
    font-family: var(--ph-font);
    color: #064e3b;
    font-variation-settings: "wght" 700, "dots" 1;
}

a {
    color: var(--primary);
}
a:hover {
    color: var(--primary-lifted);
}

/* LTR exceptions */
.domain-name,
.hostname,
code,
pre,
.input-domain,
input[type="email"],
input[name*="domain"],
.credit-card,
.cc-number,
.ltr {
    direction: ltr !important;
    text-align: left !important;
}

/* Scoped sharp corners — avoid global * !important war with Bootstrap JS UI */
.card,
.panel,
.modal-content,
.btn,
.form-control,
.input-group-text,
.dropdown-menu,
.alert,
.badge,
.table,
.list-group-item,
.nav-tabs .nav-link,
.pagination .page-link,
.sidebar .card,
.ph-glass,
.ph-kpi,
.feature-card,
.pricing-card,
.welcome-banner {
    border-radius: 0 !important;
}

/* Keep circles for dots/avatars/orbs */
.badge-pill,
.rounded-circle,
.bg-orbs .orb,
.particles span,
.hero-badge-dot {
    border-radius: 50% !important;
}

/* ---------- Background atmosphere ---------- */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-orbs .orb {
    position: absolute;
    filter: blur(80px);
    opacity: 0.45;
    animation: ph-float 20s infinite ease-in-out;
}
.bg-orbs .orb-1 {
    width: 500px; height: 500px;
    background: #10b981;
    top: -10%; right: -10%;
}
.bg-orbs .orb-2 {
    width: 400px; height: 400px;
    background: #06b6d4;
    bottom: -10%; left: -10%;
    animation-delay: -5s;
}
.bg-orbs .orb-3 {
    width: 350px; height: 350px;
    background: #84cc16;
    top: 50%; left: 50%;
    animation-delay: -10s;
}
@keyframes ph-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.particles span {
    position: absolute;
    width: 6px; height: 6px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    opacity: 0.3;
    animation: ph-rise 15s linear infinite;
}
@keyframes ph-rise {
    0% { transform: translateY(100vh); opacity: 0; }
    10%, 90% { opacity: 0.4; }
    100% { transform: translateY(-10vh) translateX(50px); opacity: 0; }
}
.particles span:nth-child(1)  { left: 5%;  animation-duration: 12s; }
.particles span:nth-child(2)  { left: 15%; animation-delay: 2s; animation-duration: 16s; }
.particles span:nth-child(3)  { left: 25%; animation-delay: 4s; animation-duration: 14s; }
.particles span:nth-child(4)  { left: 40%; animation-delay: 1s; animation-duration: 18s; }
.particles span:nth-child(5)  { left: 55%; animation-delay: 3s; animation-duration: 13s; }
.particles span:nth-child(6)  { left: 70%; animation-delay: 5s; animation-duration: 17s; }
.particles span:nth-child(7)  { left: 85%; animation-delay: 2s; animation-duration: 15s; }
.particles span:nth-child(8)  { left: 95%; animation-delay: 4s; animation-duration: 19s; }

/* Ensure content above atmosphere */
#header,
#main-body,
#footer,
.master-breadcrumb,
.ph-client-layout,
.ph-public-nav {
    position: relative;
    z-index: 5;
}

/* ---------- Glass utilities ---------- */
.ph-glass,
.glass {
    background: var(--ph-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 4px 30px rgba(16, 185, 129, 0.08),
        0 10px 60px rgba(6, 182, 212, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.gradient-text {
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* ---------- Bootstrap component restyle ---------- */
.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #059669 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #047857 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}
.btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #059669 !important;
}
.btn-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
    border-color: #0891b2 !important;
}
.btn-outline-primary {
    color: #059669 !important;
    border-color: #10b981 !important;
}
.btn-outline-primary:hover {
    background: #10b981 !important;
    color: #fff !important;
}

.form-control:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.2) !important;
}

.card,
.panel {
    background: var(--ph-glass-strong) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 4px 24px rgba(16, 185, 129, 0.06) !important;
}
.card-header,
.panel-heading {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.05)) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15) !important;
    color: #047857 !important;
}

.table thead th {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.05));
    color: #047857;
    border-bottom: 2px solid rgba(16, 185, 129, 0.2) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.04em;
}
.table-hover tbody tr:hover {
    background: rgba(16, 185, 129, 0.04);
}

.badge-success,
.label-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-warning,
.label-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #b45309 !important;
}
.badge-danger,
.label-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #b91c1c !important;
}
.badge-info,
.label-info {
    background: rgba(6, 182, 212, 0.15) !important;
    color: #0e7490 !important;
}

.alert-success { border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.1); }
.alert-info { border-color: rgba(6, 182, 212, 0.3); background: rgba(6, 182, 212, 0.1); }

.nav-tabs .nav-link.active {
    color: #047857 !important;
    border-color: #10b981 #10b981 transparent !important;
    background: rgba(255, 255, 255, 0.8) !important;
}
.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.pagination .page-item.active .page-link {
    background: #059669;
    border-color: #059669;
}
.pagination .page-link {
    color: #059669;
}

.dropdown-item:active,
.dropdown-item:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

/* Header / navbar */
.header {
    background: transparent !important;
}
.header .topbar {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.12);
}
.header .navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px);
}
.main-navbar-wrapper {
    background: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.12);
    box-shadow: 0 4px 24px rgba(16, 185, 129, 0.06);
}
.navbar-nav .nav-link {
    color: #064e3b !important;
    font-weight: 500;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active > .nav-link {
    color: #059669 !important;
}
.cart-btn .badge {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.master-breadcrumb {
    background: transparent !important;
    padding-top: 0.75rem;
}
.master-breadcrumb .breadcrumb {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

#main-body {
    min-height: 60vh;
    padding-bottom: 3rem;
}

/* Footer */
#footer.footer {
    background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #0d9488 100%) !important;
    color: rgba(255, 255, 255, 0.9);
    border-top: none;
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}
#footer .nav-link,
#footer a {
    color: rgba(255, 255, 255, 0.85) !important;
}
#footer .copyright {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

/* Order form classic steps */
#order-standard_cart .cart-body,
#order-standard_cart .panel,
#order-standard_cart .card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.12);
}
#order-standard_cart .product,
#order-standard_cart .products .product {
    border: 1px solid rgba(16, 185, 129, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#order-standard_cart .product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.15);
}
#order-standard_cart .btn-success,
#order-standard_cart .btn-checkout {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #059669 !important;
}

/* DataTables */
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #10b981;
    outline: none;
}

/* Modal */
.modal-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.05));
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}
.modal-header .modal-title {
    color: #064e3b;
}

/* Store / MarketConnect restyle */
.landing-page,
.landing-page .card,
.store-promo,
div[class*="landing-page"] .card {
    border-radius: 0 !important;
}
.landing-page .btn-success,
.landing-page .btn-primary,
.store-order-container .btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #059669 !important;
}
.landing-page h1,
.landing-page h2,
.landing-page .hero h1 {
    color: #064e3b;
}

/* Invoice standalone view — legacy hooks (viewinvoice uses parshost-invoice.css) */
body.invoice-body,
body.ph-invoice-page {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 50%, #f0fdfa 100%) !important;
    font-family: var(--ph-font, 'IRANYekanXVF', Tahoma, sans-serif);
}

/* RTL helpers when dir=rtl */
html[dir="rtl"] .float-right { float: left !important; }
html[dir="rtl"] .float-left { float: right !important; }
html[dir="rtl"] .text-right { text-align: left !important; }
html[dir="rtl"] .text-left { text-align: right !important; }
html[dir="rtl"] .mr-auto { margin-right: 0 !important; margin-left: auto !important; }
html[dir="rtl"] .ml-auto { margin-left: 0 !important; margin-right: auto !important; }
html[dir="rtl"] .input-group > .form-control:not(:last-child) { border-radius: 0; }
html[dir="rtl"] .dropdown-menu-right { right: auto; left: 0; }

/* Domain pricing page */
.tld-pricing-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08));
}

/* Return-to-admin */
.btn-return-to-admin {
    background: #059669 !important;
    color: #fff !important;
}

