/* PageBuilder Pro - Frontend Styles v3.0 */

/* ─── Base ────────────────────────────────────────── */
.pb-pro-page {
    max-width: 100%;
    overflow-x: hidden;
}

.pb-pro-page * {
    box-sizing: border-box;
}

/* ─── Layout Widgets ──────────────────────────────── */
.pb-section {
    width: 100%;
}

.pb-columns {
    display: flex;
    flex-wrap: wrap;
}

.pb-column {
    flex: 1;
    min-width: 0;
}

.pb-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.pb-grid {
    display: grid;
}

/* ─── Basic Widgets ───────────────────────────────── */
.pb-heading {
    margin: 0;
    padding: 0;
}

.pb-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pb-button {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s, transform 0.1s, background-color 0.3s, color 0.3s;
}

.pb-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.pb-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.pb-image-placeholder {
    width: 100%;
    min-height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pb-spacer {
    width: 100%;
}

.pb-divider {
    border: none;
    margin: 0;
}

.pb-video {
    width: 100%;
    position: relative;
}

.pb-video iframe,
.pb-video video {
    width: 100%;
    border: none;
}

/* ─── Icon ────────────────────────────────────────── */
.pb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ─── Icon Box ────────────────────────────────────── */
.pb-icon-box {
    text-align: center;
}

.pb-icon-box h4 {
    margin: 12px 0 8px;
}

.pb-icon-box p {
    margin: 0;
    color: #6b7280;
}

/* ─── Image Box ───────────────────────────────────── */
.pb-image-box img {
    width: 100%;
    height: auto;
    display: block;
}

.pb-image-box h4 {
    margin: 12px 0 8px;
}

.pb-image-box p {
    margin: 0;
    color: #6b7280;
}

/* ─── Counter ─────────────────────────────────────── */
.pb-counter {
    text-align: center;
}

.pb-counter-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

.pb-counter-title {
    margin-top: 8px;
    color: #6b7280;
}

/* ─── Progress Bar ────────────────────────────────── */
.pb-progress-bar {
    width: 100%;
}

.pb-progress-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
}

.pb-progress-track {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.pb-progress-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease;
}

/* ─── Testimonial ─────────────────────────────────── */
.pb-testimonial {
    text-align: center;
}

.pb-testimonial-content {
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.pb-testimonial-name {
    font-weight: 600;
}

.pb-testimonial-title {
    color: #6b7280;
    font-size: 14px;
}

/* ─── Alert ───────────────────────────────────────── */
.pb-alert {
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.pb-alert-info { background: #eff6ff; border-color: #3b82f6; }
.pb-alert-success { background: #f0fdf4; border-color: #22c55e; }
.pb-alert-warning { background: #fffbeb; border-color: #f59e0b; }
.pb-alert-error { background: #fef2f2; border-color: #ef4444; }

.pb-alert-title {
    font-weight: 600;
    margin-bottom: 4px;
}

/* ─── Rating ──────────────────────────────────────── */
.pb-rating {
    display: inline-flex;
    gap: 2px;
}

/* ─── Blockquote ──────────────────────────────────── */
.pb-blockquote {
    border-left: 4px solid #3b82f6;
    padding: 16px 24px;
    margin: 0;
    background: #f8fafc;
}

.pb-blockquote-text {
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.pb-blockquote-author {
    font-weight: 500;
    color: #6b7280;
}

/* ─── Price Table ─────────────────────────────────── */
.pb-price-table {
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.pb-price-table-ribbon {
    position: absolute;
    top: 16px;
    right: -32px;
    background: #ef4444;
    color: white;
    padding: 4px 40px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 1;
}

.pb-price-table-header {
    padding: 24px;
    background: #f8fafc;
}

.pb-price-table-title {
    font-size: 20px;
    font-weight: 600;
}

.pb-price-table-price {
    font-size: 48px;
    font-weight: 700;
    margin: 12px 0;
}

.pb-price-table-period {
    color: #6b7280;
    font-size: 14px;
}

.pb-price-table-features {
    list-style: none;
    padding: 24px;
    margin: 0;
}

.pb-price-table-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.pb-price-table-footer {
    padding: 24px;
}

/* ─── Call to Action ──────────────────────────────── */
.pb-cta {
    text-align: center;
}

.pb-cta h3 {
    margin: 0 0 12px;
    font-size: 28px;
}

.pb-cta p {
    margin: 0 0 20px;
    color: #6b7280;
}

/* ─── Animated Headline ───────────────────────────── */
.pb-animated-headline .pb-typing-text {
    border-right: 2px solid currentColor;
    animation: pbBlink 0.7s step-end infinite;
}

@keyframes pbBlink {
    0%, 100% { border-color: currentColor; }
    50% { border-color: transparent; }
}

/* ─── Code Highlight ──────────────────────────────── */
.pb-code {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.pb-code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #0f172a;
    font-size: 12px;
}

.pb-code pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* ─── Countdown ───────────────────────────────────── */
.pb-countdown {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.pb-countdown-unit {
    text-align: center;
    padding: 16px;
    background: #1e293b;
    color: white;
    border-radius: 8px;
    min-width: 80px;
}

.pb-countdown-number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.pb-countdown-label {
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 4px;
    opacity: 0.7;
}

/* ─── Form ────────────────────────────────────────── */
.pb-form {
    width: 100%;
}

.pb-form-field {
    margin-bottom: 16px;
}

.pb-form-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 14px;
}

.pb-form-field input,
.pb-form-field textarea,
.pb-form-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.pb-form-field input:focus,
.pb-form-field textarea:focus,
.pb-form-field select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pb-form-submit {
    padding: 12px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.pb-form-submit:hover {
    background: #2563eb;
}

/* ─── Search ──────────────────────────────────────── */
.pb-search {
    display: flex;
    gap: 8px;
}

.pb-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.pb-search button {
    padding: 10px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* ─── Posts / Loop Grid ───────────────────────────── */
.pb-posts {
    display: grid;
    gap: 24px;
}

.pb-post-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.pb-post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pb-post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pb-post-card-body {
    padding: 16px;
}

.pb-post-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.pb-post-card p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* ─── Gallery ─────────────────────────────────────── */
.pb-gallery {
    display: grid;
}

.pb-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s;
}

.pb-gallery img:hover {
    transform: scale(1.02);
}

/* ─── Flip Box ────────────────────────────────────── */
.pb-flip-box {
    perspective: 1000px;
    height: 280px;
}

.pb-flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.pb-flip-box:hover .pb-flip-box-inner {
    transform: rotateY(180deg);
}

.pb-flip-box-front,
.pb-flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 8px;
}

.pb-flip-box-back {
    transform: rotateY(180deg);
}

/* ─── Slides ──────────────────────────────────────── */
.pb-slides {
    position: relative;
    overflow: hidden;
}

.pb-slides-track {
    display: flex;
    transition: transform 0.5s ease;
}

.pb-slide {
    flex: 0 0 100%;
}

/* ─── Nav Menu ────────────────────────────────────── */
.pb-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 24px;
}

.pb-nav-menu.pb-nav-vertical ul {
    flex-direction: column;
    gap: 8px;
}

.pb-nav-menu a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.pb-nav-menu a:hover {
    color: #3b82f6;
}

/* ─── Table of Contents ───────────────────────────── */
.pb-toc {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.pb-toc-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.pb-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pb-toc li {
    padding: 4px 0;
}

.pb-toc a {
    color: #3b82f6;
    text-decoration: none;
}

.pb-toc a:hover {
    text-decoration: underline;
}

/* ─── Google Maps ─────────────────────────────────── */
.pb-google-maps iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
}

/* ─── SoundCloud ──────────────────────────────────── */
.pb-soundcloud iframe {
    width: 100%;
    border: none;
}

/* ─── Lottie ──────────────────────────────────────── */
.pb-lottie {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ═══════════════════════════════════════════════════
   NEW WIDGETS v3.0
   ═══════════════════════════════════════════════════ */

/* ─── Table ───────────────────────────────────────── */
.pb-table {
    width: 100%;
    overflow-x: auto;
}

.pb-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pb-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pb-table td {
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
}

.pb-table tr.pb-table-striped:nth-child(even) {
    background: #f8fafc;
}

/* ─── Toggle / Accordion ──────────────────────────── */
.pb-toggle {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.pb-toggle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 600;
    background: #f8fafc;
    transition: background 0.2s;
    user-select: none;
}

.pb-toggle-header:hover {
    background: #f1f5f9;
}

.pb-toggle-icon {
    transition: transform 0.3s;
    font-size: 18px;
}

.pb-toggle.pb-toggle-open .pb-toggle-icon {
    transform: rotate(180deg);
}

.pb-toggle-content {
    padding: 16px 20px;
    display: none;
    line-height: 1.6;
    color: #4b5563;
}

.pb-toggle.pb-toggle-open .pb-toggle-content {
    display: block;
}

/* ─── Breadcrumbs ─────────────────────────────────── */
.pb-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    flex-wrap: wrap;
}

.pb-breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.pb-breadcrumb-item a:hover {
    color: #3b82f6;
}

.pb-breadcrumb-separator {
    color: #9ca3af;
}

.pb-breadcrumb-current {
    font-weight: 500;
}

/* ─── Author Box ──────────────────────────────────── */
.pb-author-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.pb-author-box.pb-author-vertical {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pb-author-avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pb-author-info h4 {
    margin: 0 0 8px;
    font-size: 18px;
}

.pb-author-info p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

/* ─── Post Navigation ─────────────────────────────── */
.pb-post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.pb-post-nav-prev,
.pb-post-nav-next {
    flex: 1;
}

.pb-post-nav-next {
    text-align: right;
}

.pb-post-nav-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 4px;
}

.pb-post-nav-title {
    font-weight: 600;
    color: #1e293b;
}

.pb-post-nav-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.pb-post-nav-title a:hover {
    color: #3b82f6;
}

/* ─── Related Posts ───────────────────────────────── */
.pb-related-posts {
    margin: 24px 0;
}

.pb-related-posts-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.pb-related-posts-grid {
    display: grid;
    gap: 24px;
}

.pb-related-post-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.pb-related-post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pb-related-post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.pb-related-post-card h4 {
    margin: 12px 16px 4px;
    font-size: 16px;
}

.pb-related-post-card h4 a {
    color: inherit;
    text-decoration: none;
}

.pb-related-post-card .pb-related-date {
    margin: 0 16px 16px;
    font-size: 13px;
    color: #9ca3af;
}

/* ─── Site Logo ───────────────────────────────────── */
.pb-site-logo {
    display: inline-block;
}

.pb-site-logo img {
    height: auto;
    display: block;
}

.pb-site-logo a {
    display: inline-block;
}

/* ─── Site Title ──────────────────────────────────── */
.pb-site-title {
    margin: 0;
}

.pb-site-title a {
    color: inherit;
    text-decoration: none;
}

/* ─── Hotspot ─────────────────────────────────────── */
.pb-hotspot {
    position: relative;
    display: inline-block;
}

.pb-hotspot img {
    width: 100%;
    height: auto;
    display: block;
}

.pb-hotspot-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    animation: pbHotspotPulse 2s ease-in-out infinite;
    z-index: 2;
}

.pb-hotspot-marker::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.pb-hotspot-tooltip {
    position: absolute;
    background: #1e293b;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    transform: translate(-50%, -130%);
    z-index: 3;
}

.pb-hotspot-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #1e293b;
}

.pb-hotspot-marker:hover + .pb-hotspot-tooltip,
.pb-hotspot-marker:focus + .pb-hotspot-tooltip {
    opacity: 1;
}

@keyframes pbHotspotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.6); }
    50% { box-shadow: 0 0 0 12px rgba(231, 76, 60, 0); }
}

/* ─── Media Carousel ──────────────────────────────── */
.pb-media-carousel {
    position: relative;
    overflow: hidden;
}

.pb-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.pb-carousel-slide {
    flex-shrink: 0;
    padding: 0 8px;
}

.pb-carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.pb-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: background 0.2s;
}

.pb-carousel-arrow:hover {
    background: white;
}

.pb-carousel-arrow-prev {
    left: 8px;
}

.pb-carousel-arrow-next {
    right: 8px;
}

.pb-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.pb-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.pb-carousel-dot.active {
    background: #3b82f6;
}

/* ─── WooCommerce Widgets ─────────────────────────── */
.pb-woo-products {
    display: grid;
    gap: 24px;
}

.pb-woo-product-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.pb-woo-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pb-woo-product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pb-woo-product-body {
    padding: 16px;
}

.pb-woo-product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.pb-woo-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.pb-woo-product-price del {
    color: #9ca3af;
    font-weight: 400;
    font-size: 14px;
    margin-right: 8px;
}

.pb-woo-product-price ins {
    text-decoration: none;
    color: #ef4444;
}

.pb-woo-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pb-woo-cart:hover {
    opacity: 0.8;
}

.pb-woo-cart-icon {
    font-size: 20px;
}

.pb-woo-cart-count {
    background: #ef4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.pb-woo-add-to-cart {
    display: inline-block;
}

.pb-woo-add-to-cart button,
.pb-woo-add-to-cart .button {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: opacity 0.2s, transform 0.1s;
}

.pb-woo-add-to-cart button:hover,
.pb-woo-add-to-cart .button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.pb-woo-price {
    font-size: 24px;
    font-weight: 700;
}

.pb-woo-price del {
    color: #9ca3af;
    font-weight: 400;
    font-size: 16px;
}

.pb-woo-price ins {
    text-decoration: none;
}

.pb-woo-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


/* ═══════════════════════════════════════════════════
   ANIMATIONS (Entrance Effects)
   ═══════════════════════════════════════════════════ */

/* Base animation class */
.pb-animate {
    opacity: 0;
    animation-fill-mode: forwards;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
}

.pb-animate[data-animation] {
    animation-play-state: paused;
}

.pb-animate.pb-animated {
    animation-play-state: running;
}

/* Fade */
.pb-anim-fadeIn { animation-name: pbFadeIn; }
.pb-anim-fadeInUp { animation-name: pbFadeInUp; }
.pb-anim-fadeInDown { animation-name: pbFadeInDown; }
.pb-anim-fadeInLeft { animation-name: pbFadeInLeft; }
.pb-anim-fadeInRight { animation-name: pbFadeInRight; }

/* Zoom */
.pb-anim-zoomIn { animation-name: pbZoomIn; }
.pb-anim-zoomInUp { animation-name: pbZoomInUp; }
.pb-anim-zoomInDown { animation-name: pbZoomInDown; }

/* Bounce */
.pb-anim-bounceIn { animation-name: pbBounceIn; }
.pb-anim-bounceInUp { animation-name: pbBounceInUp; }
.pb-anim-bounceInDown { animation-name: pbBounceInDown; }

/* Slide */
.pb-anim-slideInUp { animation-name: pbSlideInUp; }
.pb-anim-slideInDown { animation-name: pbSlideInDown; }
.pb-anim-slideInLeft { animation-name: pbSlideInLeft; }
.pb-anim-slideInRight { animation-name: pbSlideInRight; }

/* Rotate */
.pb-anim-rotateIn { animation-name: pbRotateIn; }
.pb-anim-rotateInDownLeft { animation-name: pbRotateInDownLeft; }

/* Flip */
.pb-anim-flipInX { animation-name: pbFlipInX; }
.pb-anim-flipInY { animation-name: pbFlipInY; }

/* Light Speed */
.pb-anim-lightSpeedIn { animation-name: pbLightSpeedIn; }

/* Roll */
.pb-anim-rollIn { animation-name: pbRollIn; }

/* ─── Keyframes ───────────────────────────────────── */
@keyframes pbFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pbFadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pbFadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pbFadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pbFadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pbZoomIn {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pbZoomInUp {
    from { opacity: 0; transform: scale(0.6) translateY(40px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pbZoomInDown {
    from { opacity: 0; transform: scale(0.6) translateY(-40px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pbBounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pbBounceInUp {
    0% { opacity: 0; transform: translateY(60px); }
    60% { opacity: 1; transform: translateY(-10px); }
    80% { transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pbBounceInDown {
    0% { opacity: 0; transform: translateY(-60px); }
    60% { opacity: 1; transform: translateY(10px); }
    80% { transform: translateY(-5px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pbSlideInUp {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pbSlideInDown {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pbSlideInLeft {
    from { opacity: 0; transform: translateX(-100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pbSlideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pbRotateIn {
    from { opacity: 0; transform: rotate(-200deg); }
    to { opacity: 1; transform: rotate(0); }
}

@keyframes pbRotateInDownLeft {
    from { opacity: 0; transform: rotate(-45deg); transform-origin: left bottom; }
    to { opacity: 1; transform: rotate(0); }
}

@keyframes pbFlipInX {
    0% { opacity: 0; transform: perspective(400px) rotateX(90deg); }
    40% { transform: perspective(400px) rotateX(-10deg); }
    70% { transform: perspective(400px) rotateX(10deg); }
    100% { opacity: 1; transform: perspective(400px) rotateX(0); }
}

@keyframes pbFlipInY {
    0% { opacity: 0; transform: perspective(400px) rotateY(90deg); }
    40% { transform: perspective(400px) rotateY(-10deg); }
    70% { transform: perspective(400px) rotateY(10deg); }
    100% { opacity: 1; transform: perspective(400px) rotateY(0); }
}

@keyframes pbLightSpeedIn {
    from { opacity: 0; transform: translateX(100%) skewX(-30deg); }
    60% { opacity: 1; transform: translateX(-5%) skewX(10deg); }
    80% { transform: translateX(2%) skewX(-5deg); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pbRollIn {
    from { opacity: 0; transform: translateX(-100%) rotate(-120deg); }
    to { opacity: 1; transform: translateX(0) rotate(0); }
}


/* ═══════════════════════════════════════════════════
   HOVER ANIMATIONS
   ═══════════════════════════════════════════════════ */

.pb-hover-grow { transition: transform 0.3s ease; }
.pb-hover-grow:hover { transform: scale(1.05); }

.pb-hover-shrink { transition: transform 0.3s ease; }
.pb-hover-shrink:hover { transform: scale(0.95); }

.pb-hover-pulse { transition: transform 0.3s ease; }
.pb-hover-pulse:hover { animation: pbPulse 1s ease infinite; }

.pb-hover-float { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pb-hover-float:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12); }

.pb-hover-sink { transition: transform 0.3s ease; }
.pb-hover-sink:hover { transform: translateY(6px); }

.pb-hover-bob { transition: transform 0.3s ease; }
.pb-hover-bob:hover { animation: pbBob 1.5s ease infinite; }

.pb-hover-rotate { transition: transform 0.3s ease; }
.pb-hover-rotate:hover { transform: rotate(4deg); }

.pb-hover-skew { transition: transform 0.3s ease; }
.pb-hover-skew:hover { transform: skewX(-5deg); }

.pb-hover-wobble { transition: transform 0.3s ease; }
.pb-hover-wobble:hover { animation: pbWobble 1s ease; }

.pb-hover-buzz { transition: transform 0.3s ease; }
.pb-hover-buzz:hover { animation: pbBuzz 0.15s linear infinite; }

.pb-hover-shadow { transition: box-shadow 0.3s ease; }
.pb-hover-shadow:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); }

.pb-hover-overline { position: relative; }
.pb-hover-overline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #3b82f6;
    transition: width 0.3s ease;
}
.pb-hover-overline:hover::before { width: 100%; }

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

@keyframes pbBob {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-6px); }
    75% { transform: translateY(3px); }
}

@keyframes pbWobble {
    0% { transform: rotate(0); }
    15% { transform: rotate(-5deg); }
    30% { transform: rotate(3deg); }
    45% { transform: rotate(-3deg); }
    60% { transform: rotate(2deg); }
    75% { transform: rotate(-1deg); }
    100% { transform: rotate(0); }
}

@keyframes pbBuzz {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
}


/* ═══════════════════════════════════════════════════
   STICKY
   ═══════════════════════════════════════════════════ */

.pb-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
}


/* ═══════════════════════════════════════════════════
   POPUP OVERLAY
   ═══════════════════════════════════════════════════ */

.pb-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.pb-popup-overlay.pb-popup-active {
    opacity: 1;
    visibility: visible;
}

.pb-popup-container {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pb-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
    color: #374151;
    transition: background 0.2s;
    z-index: 1;
}

.pb-popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Popup positions */
.pb-popup-pos-center { align-items: center; justify-content: center; }
.pb-popup-pos-top_left { align-items: flex-start; justify-content: flex-start; }
.pb-popup-pos-top_center { align-items: flex-start; justify-content: center; }
.pb-popup-pos-top_right { align-items: flex-start; justify-content: flex-end; }
.pb-popup-pos-center_left { align-items: center; justify-content: flex-start; }
.pb-popup-pos-center_right { align-items: center; justify-content: flex-end; }
.pb-popup-pos-bottom_left { align-items: flex-end; justify-content: flex-start; }
.pb-popup-pos-bottom_center { align-items: flex-end; justify-content: center; }
.pb-popup-pos-bottom_right { align-items: flex-end; justify-content: flex-end; }

.pb-popup-pos-full_screen .pb-popup-container {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
}

/* Popup entrance animations */
.pb-popup-anim-fadeIn .pb-popup-container {
    animation: pbFadeIn 0.4s ease forwards;
}

.pb-popup-anim-slideInUp .pb-popup-container {
    animation: pbPopSlideUp 0.4s ease forwards;
}

.pb-popup-anim-slideInDown .pb-popup-container {
    animation: pbPopSlideDown 0.4s ease forwards;
}

.pb-popup-anim-zoomIn .pb-popup-container {
    animation: pbZoomIn 0.4s ease forwards;
}

.pb-popup-anim-flipInX .pb-popup-container {
    animation: pbFlipInX 0.5s ease forwards;
}

@keyframes pbPopSlideUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pbPopSlideDown {
    from { opacity: 0; transform: translateY(-60px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════
   FRONTEND ANIMATION TRIGGER SCRIPT HELPER
   ═══════════════════════════════════════════════════ */

/* Animation duration variants */
.pb-anim-duration-slow { animation-duration: 1.2s !important; }
.pb-anim-duration-normal { animation-duration: 0.8s !important; }
.pb-anim-duration-fast { animation-duration: 0.4s !important; }

/* Animation delay variants */
.pb-anim-delay-100 { animation-delay: 0.1s !important; }
.pb-anim-delay-200 { animation-delay: 0.2s !important; }
.pb-anim-delay-300 { animation-delay: 0.3s !important; }
.pb-anim-delay-500 { animation-delay: 0.5s !important; }
.pb-anim-delay-1000 { animation-delay: 1s !important; }


/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .pb-countdown {
        gap: 12px;
    }

    .pb-countdown-unit {
        min-width: 60px;
        padding: 12px;
    }

    .pb-countdown-number {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .pb-columns {
        flex-direction: column;
    }

    .pb-column {
        width: 100% !important;
        flex: none;
    }

    .pb-post-navigation {
        flex-direction: column;
        gap: 16px;
    }

    .pb-post-nav-next {
        text-align: left;
    }

    .pb-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pb-countdown {
        gap: 8px;
    }

    .pb-countdown-unit {
        min-width: 50px;
        padding: 10px 8px;
    }

    .pb-countdown-number {
        font-size: 24px;
    }

    .pb-price-table-price {
        font-size: 36px;
    }

    .pb-table {
        font-size: 13px;
    }

    .pb-nav-menu ul {
        flex-direction: column;
        gap: 8px;
    }

    .pb-popup-container {
        max-width: 95vw;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .pb-search {
        flex-direction: column;
    }

    .pb-countdown-label {
        font-size: 10px;
    }
}


/* ═══════════════════════════════════════════════════
   RTL SUPPORT
   ═══════════════════════════════════════════════════ */

[dir="rtl"] .pb-pro-page {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .pb-button {
    direction: rtl;
}

[dir="rtl"] .pb-columns {
    flex-direction: row-reverse;
}

[dir="rtl"] .pb-breadcrumbs {
    direction: rtl;
}

[dir="rtl"] .pb-post-nav-next {
    text-align: left;
}

[dir="rtl"] .pb-post-nav-prev {
    text-align: right;
}

[dir="rtl"] .pb-alert {
    border-left: none;
    border-right: 4px solid;
}

[dir="rtl"] .pb-blockquote {
    border-left: none;
    border-right: 4px solid #3b82f6;
}

[dir="rtl"] .pb-popup-close {
    right: auto;
    left: 12px;
}

[dir="rtl"] .pb-price-table-ribbon {
    right: auto;
    left: -32px;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    [dir="rtl"] .pb-columns {
        flex-direction: column;
    }
}
