﻿/**
 * Theme Name: Power Process
 * Theme URI: https://example.com/
 * Author: Power Process
 * Description: Bold RTL-friendly landing/theme for cloud games portal with gradients, motion, and card layout.
 * Version: 0.2.0
 * Text Domain: cloud-portal
 */

:root {
  --bg: #07102a;
  --bg-alt: #111d3c;
  --card: transparent!important;
  --border: #294a7a;
  --header-bar: rgba(15, 24, 48, 0.88);
  --accent: #7ef2d6;
  --accent-2: #f7b267;
  --accent-3: #8bd2ff;
  --text: #f3f6fb;
  --muted: #c3cee0;
  --shadow: 0 18px 50px rgba(13, 25, 57, 0.38);
  --radius: 16px;
  --font: "Baloo Bhaijaan 2", Sans-serif!important;
}
h1,h2,h3,h4,h5,h6,div,span,a,li{
    font-family:  "Baloo Bhaijaan 2", Sans-serif!important;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(120% 120% at 12% 18%, rgba(126, 242, 214, 0.2), transparent 55%),
    radial-gradient(90% 90% at 82% 16%, rgba(255, 164, 206, 0.25), transparent 52%),
    radial-gradient(110% 100% at 72% 74%, rgba(110, 176, 255, 0.22), transparent 58%),
    radial-gradient(140% 140% at 46% 86%, rgba(97, 252, 205, 0.12), transparent 60%),
    conic-gradient(from 210deg at 50% 50%, #070c1c, #111c3d 35%, #0f1c42 65%, #080f21);
  background-size: 220% 220%;
  background-attachment: fixed;
  animation: gradientShift 24s ease infinite;
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 32%, rgba(255, 255, 255, 0.05), transparent 30%),
    radial-gradient(circle at 78% 70%, rgba(94, 234, 255, 0.08), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 22%, rgba(0, 0, 0, 0) 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 1px, transparent 2px, transparent 7px);
  mix-blend-mode: screen;
  opacity: 0.8;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1200px, 92vw); margin: 0 auto; }
.page-shell { transition: opacity 0.15s ease, transform 0.2s ease; }
body.is-exiting .page-shell { opacity: 0.2; transform: translateY(6px) scale(0.995); filter: blur(1px); }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: var(--header-bar);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.3px;
  font-size: 1.1rem;
}
.brand-link { display: inline-flex; align-items: center; gap: 10px; }
.brand .brand-logo,
.brand .custom-logo { height: 48px; width: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35)); }
.brand-text { text-transform: none; }
.badge {
  background: rgba(246, 173, 85, 0.16);
  color: var(--accent-2);
  border: 1px solid rgba(246, 173, 85, 0.42);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.nav { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.nav-links { flex: 1; }
.nav-list {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(23, 44, 89, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 15px 30px rgba(7, 16, 32, 0.4);
}
.nav-list li { display: flex; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 700;
  transition: all 0.15s ease;
}
.nav-list a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.1rem;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}
.cart-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(125, 242, 208, 0.25), rgba(122, 215, 255, 0.15));
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 19;
}
.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #8b7df2, #f6ad55);
  color: #0b1425;
  box-shadow: 0 10px 30px rgba(246, 173, 85, 0.3);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
}
.btn:hover { transform: translateY(-2px); }

.hero {
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: center;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 14px;
}
.hero-sub { color: var(--muted); font-size: 1.05rem; margin: 0 0 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.section-title { font-size: 1.5rem; margin: 0 0 12px; }
.section-sub { color: var(--muted); margin-bottom: 22px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.step { border: 1px dashed rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 14px; }
.step strong { display: block; margin-bottom: 6px; color: #fff; }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 10px; }
.price-card {
  background: linear-gradient(145deg, #111d38, #182f5d);
  border: 1px solid rgba(246, 173, 85, 0.3);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(246, 173, 85, 0.2);
}
.price { font-size: 2rem; font-weight: 800; margin: 6px 0; }

.footer {
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 48px;
  background: var(--header-bar);
  box-shadow: 0 -18px 44px rgba(4, 8, 20, 0.7);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { font-weight: 700; color: var(--text); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}
.footer-contact a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-contact span {
  color: var(--muted);
  font-weight: 500;
}
.footer-contact strong { font-weight: 700; }
.footer-trust img {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

/* Motion */
.reveal { opacity: 0; transform: translateY(24px) scale(0.99); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.hero .card { animation: floaty 8s ease-in-out infinite alternate; }
@keyframes floaty { from { transform: translateY(-4px); } to { transform: translateY(6px); } }
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Align plugin cards with theme */
.cg-portal .cg-card { background: var(--card); border-radius: 16px; }
 .cg-portal .cg-btn-primary { /*background: linear-gradient(135deg, #7df2d0, #f6ad55);*/ 
color: white; } 
.cg-portal .cg-form { background: var(--bg-alt); }

/* WooCommerce checkout layout */
.woocommerce .checkout-button {
  background: linear-gradient(135deg, #f6ad55, #ff7b6b);
  color: #0b1425 !important;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 16px;
  width: 100%;
  text-align: center;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(255, 123, 107, 0.28);
}
.woocommerce .checkout-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 123, 107, 0.32);
}
.woocommerce-checkout form.checkout {
  direction: ltr;
  text-align: right;
}
.woocommerce form .form-row { direction: rtl; text-align: right; }
.woocommerce form .form-row label { text-align: right; width: 100%; display: block; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  text-align: right;
  direction: rtl;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  min-height: 52px;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(110, 231, 183, 0.18);
}
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading {
  grid-area: auto;
}
.woocommerce-checkout #customer_details {
  width: 100%;
  direction: rtl;
}
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading {
  direction: rtl;
}
@media (min-width: 960px) {
  .woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(420px, 1.1fr) minmax(360px, 0.9fr);
    grid-template-areas:
      "customer order";
    gap: 24px;
    align-items: flex-start;
  }
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review { grid-area: order; text-align: right; margin-inline-start: 0; margin-inline-end: 0; }
  .woocommerce-checkout #order_review_heading { grid-area: order; margin-inline-start: 0; }
  .woocommerce-checkout #customer_details { grid-area: customer; }
  .woocommerce-checkout #order_review { margin: 0; }
  .woocommerce-checkout #order_review_heading { margin: 0 0 12px; }
}
.woocommerce-checkout #order_review {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.woocommerce-checkout #order_review .shop_table {
  background: transparent;
  border-radius: 10px;
}
.woocommerce-checkout #payment {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  width: 100%;
}
.woocommerce-checkout #payment .wc_payment_methods label { font-weight: 700; }
.woocommerce-checkout #payment .place-order .button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3abf94, #1f7a56);
}
@media (min-width: 960px) {
  .woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
    gap: 24px;
    align-items: flex-start;
  }
  .woocommerce-checkout #customer_details { grid-column: 2; }
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review { grid-column: 1; text-align: right; }
  .woocommerce-checkout #order_review { margin: 0; }
  .woocommerce-checkout #order_review_heading { margin: 0 0 12px; }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    position: relative;
  }
  .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 1px;
    left: 16px;
    z-index: 25;
  }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 80vw);
    /* background: var(--bg-alt); */
    /* backdrop-filter: blur(12px);
    border-left: 1px solid rgba(255, 255, 255, 0.08); */
    padding: 80px 16px 20px;
    flex-direction: column;
    gap: 14px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 20;
  }
  .nav-links,
  .nav-actions { width: 100%; }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top:-60px;
    margin-right:-20px;
  }
  .nav-list a {
    width: 100%;
    justify-content: flex-start;
  }
  .nav-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
  }
  .nav .btn,
  .nav-actions .cart-link {
    width: 100%;
    justify-content: flex-start;
  }
  .nav-open .nav { transform: translateX(0); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-trust img { height: 34px; }
  .hero { padding-top: 48px; }
  .woocommerce-cart-form table.shop_table {
    display: block;
    border: none;
    background: transparent;
  }
  .woocommerce-cart-form table.shop_table thead { display: none; }
  .woocommerce-cart-form table.shop_table tbody {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .woocommerce-cart-form table.shop_table tbody tr {
    display: block;
    border: none;
  }
  .woocommerce-cart-form table.shop_table tbody tr.cart_item {
    display: grid;
    grid-template-columns: 88px 1fr;
    grid-template-areas:
      "thumb remove"
      "thumb name"
      "qty qty"
      "subtotal subtotal";
    gap: 8px 18px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(10, 20, 44, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(7, 16, 32, 0.45);
  }
  .woocommerce-cart-form table.shop_table tbody tr.cart_item > td { display: block; }
  .woocommerce-cart-form table.shop_table tbody td {
    padding: 0;
    border: none;
  }
  .woocommerce-cart-form table.shop_table tbody td.product-thumbnail {
    grid-area: thumb;
    width: 88px;
  }
  .woocommerce-cart-form table.shop_table tbody td.product-thumbnail img {
    width: 100%;
    border-radius: 12px;
  }
  .woocommerce-cart-form table.shop_table tbody td.product-remove {
    grid-area: remove;
    justify-self: end;
    align-self: start;
  }
  .woocommerce-cart-form table.shop_table tbody td.product-name {
    grid-area: name;
  }
  .woocommerce-cart-form table.shop_table tbody td.product-price {
    display: none;
  }
  .woocommerce-cart-form table.shop_table tbody td.product-quantity {
    grid-area: qty;
    justify-self: stretch;
  }
  .woocommerce-cart-form table.shop_table tbody td.product-subtotal {
    grid-area: subtotal;
    font-weight: 700;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    margin-top: 4px;
  }
  .woocommerce-cart-form table.shop_table tbody td .quantity input {
    width: 100px;
  }
  .woocommerce-cart-form table.shop_table tbody td.product-remove .remove {
    font-size: 1.4rem;
  }
  .woocommerce-cart-form .actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(10, 20, 44, 0.92);
  }
  .woocommerce-cart-form .actions .coupon {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .woocommerce-cart-form .actions .coupon input {
    flex: 1;
    min-width: 160px;
  }
  .woocommerce-cart-form .actions .coupon button {
    flex: 1 1 140px;
  }
  .woocommerce-cart-form .actions .button {
    width: 100%;
  }
  .wp-block-woocommerce-cart .wc-block-cart-item__total {
    display: none !important;
  }
}

@media (max-width: 540px) {
  body { font-size: 15px; }
  .container { width: 100%; padding: 0 16px; }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 42px 0 30px;
  }
  .hero .btn { width: 100%; justify-content: center; }
  .pricing,
  .steps {
    grid-template-columns: 1fr;
  }
  .cg-portal .cg-card,
  .cg-portal .cg-form {
    padding: 16px;
  }
  .cg-portal .cg-tabs {
    flex-direction: column;
    gap: 8px;
  }
  .cg-portal .cg-tab-btn {
    font-size: 0.95rem;
    width: 100%;
  }
  .cg-portal .cg-tab {
    margin-top: 6px;
  }
  .cg-portal .cg-form label { font-size: 0.95rem; }
  .cg-portal .cg-form input,
  .cg-portal .cg-form select,
  .cg-portal .cg-form textarea {
    font-size: 1rem;
    min-height: 46px;
  }
  .cg-portal .cg-form .cg-otp-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cg-portal .cg-form .cg-otp-row input,
  .cg-portal .cg-form .cg-otp-row .cg-otp-btn {
    width: 100%;
  }
  .cg-portal .cg-btn { width: 100%; }
  .cg-portal .cg-card .cg-actions { flex-direction: column; }
  .cg-portal .cg-card .cg-pill { width: 100%; justify-content: center; }
}
