/* Wepido company UI — shared components */
@import url("wepido-company-ui-tokens.css");

.wepido-company-ui,
.company-flow-wrap,
.company-plans-section {
    font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
}

/* Cards */
.cb-card,
.company-card {
    background: var(--cb-surface);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-card);
    box-shadow: var(--cb-shadow);
}

.cb-card-body {
    padding: 1.75rem;
}

/* Top bar */
.cb-topbar {
    background: var(--cb-surface);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-card);
    box-shadow: var(--cb-shadow);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.cb-topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.cb-topbar-main {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 auto;
}

.cb-topbar-brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.cb-topbar-kicker {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cb-text);
    margin: 0;
    line-height: 1.35;
}

.cb-topbar-kicker i {
    color: var(--cb-primary);
    margin-left: 0.5rem;
}

.cb-topbar-step {
    display: none;
    min-width: 0;
}

.cb-topbar-step-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--cb-text);
}

.cb-topbar-step-desc {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--cb-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cb-topbar-step-desc:empty {
    display: none;
    margin: 0;
}

.cb-breadcrumb {
    font-size: 0.85rem;
    color: var(--cb-muted);
    margin: 0;
    line-height: 1.4;
}

.cb-breadcrumb a {
    color: var(--cb-primary);
    text-decoration: none;
}

.cb-breadcrumb a:hover {
    text-decoration: underline;
}

.cb-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--cb-primary-subtle);
    color: var(--cb-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

/* Buttons */
.cb-btn-primary,
.company-btn-next {
    background: var(--cb-primary);
    color: #fff;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: var(--cb-radius-control);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    display: inline-block;
}

.cb-btn-primary:hover,
.company-btn-next:hover:not(:disabled) {
    background: var(--cb-primary-hover);
    color: #fff;
    transform: translateY(-1px);
}

.cb-btn-outline,
.company-btn-prev {
    background: transparent;
    color: var(--cb-primary);
    border: 1px solid var(--cb-border);
    padding: 0.65rem 1.5rem;
    border-radius: var(--cb-radius-control);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.cb-btn-outline:hover,
.company-btn-prev:hover {
    background: var(--cb-primary-subtle);
    border-color: var(--cb-primary);
    color: var(--cb-primary);
}

/* Domain badge */
.domain-display {
    display: inline-block;
    background: var(--cb-primary-subtle);
    color: var(--cb-primary);
    padding: 0.45rem 1rem;
    border-radius: var(--cb-radius-control);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
    direction: ltr;
    unicode-bidi: embed;
}

.text-muted-small {
    font-size: 0.875rem;
    color: var(--cb-muted);
}

/* Summary grid */
.cb-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.cb-summary-item {
    background: var(--cb-bg);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-control);
    padding: 0.85rem 1rem;
}

.cb-summary-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cb-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.cb-summary-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cb-text);
    word-break: break-word;
}

/* Payment / info boxes */
.company-payment-box,
.cb-info-box {
    background: var(--cb-bg);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-control);
    padding: 1.25rem;
    margin-top: 1rem;
}

.company-plan-price,
.cb-price-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-hover));
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    margin-top: 0.35rem;
}

/* Section backgrounds */
.company-flow-wrap,
.company-plans-section {
    background: var(--cb-bg);
}

/* Plan cards (Plans.aspx) */
.cb-plan-card {
    background: var(--cb-surface);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-card);
    box-shadow: var(--cb-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cb-plan-card:hover {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
    transform: translateY(-4px);
}

.cb-plan-card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--cb-primary), #60a5fa);
}

.cb-plan-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cb-plan-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cb-text);
    margin-bottom: 0.5rem;
}

.cb-plan-card-tagline {
    font-size: 0.85rem;
    color: var(--cb-primary);
    background: var(--cb-primary-subtle);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 1rem;
}

.cb-plan-price-block {
    background: var(--cb-bg);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-control);
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.cb-plan-features {
    flex: 1;
    margin-bottom: 1rem;
}

.cb-plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cb-plan-features li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--cb-text);
}

.cb-plan-features li i {
    color: var(--cb-success);
    margin-left: 0.5rem;
}

.cb-plan-cta {
    display: block;
    text-align: center;
    background: var(--cb-primary);
    color: #fff !important;
    font-weight: 700;
    padding: 0.85rem 1.25rem;
    border-radius: var(--cb-radius-control);
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.cb-plan-cta:hover {
    background: var(--cb-primary-hover);
    color: #fff !important;
}

.cb-plan-cta-free {
    background: var(--cb-success);
}

.cb-plan-cta-free:hover {
    background: #16a34a;
}

/* Launch / success hero */
.cb-hero {
    background: var(--cb-surface);
    border-bottom: 1px solid var(--cb-border);
    padding: 3rem 0;
    text-align: center;
}

.cb-hero-icon {
    font-size: 3.5rem;
    color: var(--cb-success);
    margin-bottom: 1rem;
}

.cb-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cb-text);
    margin-bottom: 0.75rem;
}

.cb-hero p {
    color: var(--cb-muted);
    font-size: 1.05rem;
    max-width: 36rem;
    margin: 0 auto 1.5rem;
}

/* Verify pay */
.cb-status-card {
    max-width: 480px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
}

.cb-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--cb-border);
    border-top-color: var(--cb-primary);
    border-radius: 50%;
    animation: cbSpin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes cbSpin {
    to { transform: rotate(360deg); }
}

/* Forms in company UI scope */
.wepido-company-ui .form-control:focus,
.company-flow-wrap .form-control:focus,
.company-builder-wrap .form-control:focus {
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.wepido-company-ui .btn-outline-primary,
.company-flow-wrap .btn-outline-primary {
    border-color: var(--cb-primary);
    color: var(--cb-primary);
    border-radius: var(--cb-radius-control);
}

.wepido-company-ui .btn-outline-primary:hover,
.company-flow-wrap .btn-outline-primary:hover {
    background: var(--cb-primary);
    border-color: var(--cb-primary);
    color: #fff;
}

/* Plans.aspx — company section overrides (keeps ListView markup) */
.company-plans-section .group.relative.bg-white {
    background: var(--cb-surface) !important;
    border: 1px solid var(--cb-border) !important;
    border-radius: var(--cb-radius-card) !important;
    box-shadow: var(--cb-shadow) !important;
    transform: none !important;
}

.company-plans-section .group.relative.bg-white:hover {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1) !important;
    transform: translateY(-4px) !important;
}

.company-plans-section .group.relative.bg-white > .relative > .h-1 {
    background: linear-gradient(90deg, var(--cb-primary), #60a5fa) !important;
    height: 4px !important;
}

.company-plans-section .group.relative.bg-white .text-2xl.font-black,
.company-plans-section .group.relative.bg-white h3 {
    color: var(--cb-text) !important;
}

.company-plans-section .group.relative.bg-white a[class*="bg-gradient-to-r"] {
    background: var(--cb-primary) !important;
    border-radius: var(--cb-radius-control) !important;
    font-size: 1rem !important;
    padding: 0.85rem 1.25rem !important;
}

.company-plans-section .group.relative.bg-white a[class*="from-green"] {
    background: var(--cb-success) !important;
}

.company-plans-section .col-span-full.bg-gradient-to-br {
    background: var(--cb-surface) !important;
    border: 1px solid var(--cb-border) !important;
    border-radius: var(--cb-radius-card) !important;
    box-shadow: var(--cb-shadow) !important;
}

/* free_site_successfully — company launch */
.company-launch .launch-hero,
.company-launch section.pt-100 {
    background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-hover) 50%, #1e3a8a 100%) !important;
    color: #fff !important;
    padding: 3rem 0 !important;
}

.company-launch .launch-hero h1,
.company-launch .launch-hero h2,
.company-launch .launch-hero p,
.company-launch .launch-hero .lead,
.company-launch .launch-hero .text-white,
.company-launch .launch-hero.bg-primary-gradient h1,
.company-launch .launch-hero.bg-primary-gradient h2,
.company-launch .launch-hero.bg-primary-gradient h3,
.company-launch .launch-hero.bg-primary-gradient h4,
.company-launch .launch-hero.bg-primary-gradient p,
.company-launch section.pt-100 .text-white {
    color: #fff !important;
}

.company-launch .cb-hero-icon,
.company-launch .launch-hero .bi-check-circle-fill {
    color: #fff !important;
}

.company-launch .btn-light.text-primary {
    background: #fff !important;
    color: var(--cb-primary) !important;
    border: none !important;
}

.company-launch .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.85) !important;
    color: #fff !important;
    background: transparent !important;
}

.company-launch .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.company-launch section.bg-light {
    background: var(--cb-bg) !important;
}

.company-launch .card {
    background: var(--cb-surface) !important;
    border: 1px solid var(--cb-border) !important;
    border-radius: var(--cb-radius-card) !important;
    box-shadow: var(--cb-shadow) !important;
}

/* free_site_successfully — shop launch */
.shop-launch .launch-hero,
.shop-launch section.pt-100 {
    background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-hover) 50%, #1e3a8a 100%) !important;
    color: #fff !important;
    padding: 3rem 0 !important;
}

.shop-launch .launch-hero h1,
.shop-launch .launch-hero h2,
.shop-launch .launch-hero p,
.shop-launch .launch-hero .lead,
.shop-launch .launch-hero .text-white,
.shop-launch .launch-hero.bg-primary-gradient h1,
.shop-launch .launch-hero.bg-primary-gradient h2,
.shop-launch .launch-hero.bg-primary-gradient h3,
.shop-launch .launch-hero.bg-primary-gradient h4,
.shop-launch .launch-hero.bg-primary-gradient p,
.shop-launch section.pt-100 .text-white {
    color: #fff !important;
}

.shop-launch .launch-hero .bi-check-circle-fill {
    color: #fff !important;
}

.shop-launch .btn-light.text-primary {
    background: #fff !important;
    color: var(--cb-primary) !important;
    border: none !important;
}

.shop-launch .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.85) !important;
    color: #fff !important;
    background: transparent !important;
}

.shop-launch .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.shop-launch section.bg-light {
    background: var(--cb-bg) !important;
}

.shop-launch .card {
    background: var(--cb-surface) !important;
    border: 1px solid var(--cb-border) !important;
    border-radius: var(--cb-radius-card) !important;
    box-shadow: var(--cb-shadow) !important;
}

/* verify-pay — company & shop flow */
.company-flow-wrap,
.shop-flow-wrap {
    background: var(--cb-bg);
    min-height: 50vh;
    padding: 2rem 0;
}

.company-flow-wrap .bg-gradient-to-b.from-slate-50,
.shop-flow-wrap .bg-gradient-to-b.from-slate-50 {
    background: var(--cb-surface) !important;
    border: 1px solid var(--cb-border) !important;
    border-radius: var(--cb-radius-card) !important;
    box-shadow: var(--cb-shadow) !important;
}

.company-flow-wrap .text-emerald-600,
.company-flow-wrap .text-emerald-500,
.shop-flow-wrap .text-emerald-600,
.shop-flow-wrap .text-emerald-500 {
    color: var(--cb-primary) !important;
}

.company-flow-wrap .border-emerald-500,
.shop-flow-wrap .border-emerald-500 {
    border-color: var(--cb-primary) !important;
}

/* Plans — shop section */
.shop-plans-section .group.relative.bg-white {
    background: var(--cb-surface) !important;
    border: 1px solid var(--cb-border) !important;
    border-radius: var(--cb-radius-card) !important;
    box-shadow: var(--cb-shadow) !important;
    transform: none !important;
}

.shop-plans-section .group.relative.bg-white:hover {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1) !important;
    transform: translateY(-4px) !important;
}

.shop-plans-section .group.relative.bg-white > .relative > .h-1 {
    background: linear-gradient(90deg, var(--cb-primary), #60a5fa) !important;
    height: 4px !important;
}

.shop-plans-section .group.relative.bg-white a[class*="bg-gradient-to-r"] {
    background: var(--cb-primary) !important;
    border-radius: var(--cb-radius-control) !important;
    font-size: 1rem !important;
    padding: 0.85rem 1.25rem !important;
}

.shop-plans-section .group.relative.bg-white a[class*="from-green"] {
    background: var(--cb-success) !important;
}
