/* ---------- Base ---------- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f9fafc;
  color: #222;
}

/* ---------- Header + Nav (scoped) ---------- */
#ptux-header {
  background: #005990;
  color: #fff;
  padding: 1rem 2rem;
  position: relative;
}

.ptux-navbar {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ptux-logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ptux-logo-img {
  width: 40px;
  height: 40px;
}

.ptux-logo-text {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Nav list + links */
.ptux-nav ul,
#ptux-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.ptux-nav a,
.ptux-menu-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.ptux-nav a:hover,
.ptux-menu-link:hover {
  color: #ff9800;
}

/* Mobile toggle icon */
.ptux-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
  color: #fff;
}

/* ---------- Hero Section (site geneli) ---------- */
.hero {
  text-align: center;
  padding: 1.6rem 2rem; /* Reduced by 60% from 4rem */
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 0.8rem; /* Reduced by 60% from 2rem */
}
.cta-btn {
  background: #ff9800;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  display: inline-block;
}
.cta-btn:hover {
  background: #e68900;
}

.section {
  padding: 1.2rem 2rem; /* Reduced by 60% from 3rem */
  max-width: 1100px;
  margin: auto;
  text-align: center;
}
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.benefit {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: left;
}
.benefit h3 {
  margin-top: 0;
  color: #005990;
  text-align: center; /* Keep headings centered */
}

/* ---------- Pricing ---------- */
.pricing {
  margin-top: 3rem;
}
.pricing h2 {
  margin-bottom: 2rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
th, td {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  text-align: center;
}
th {
  background: #005990;
  color: #fff;
  font-size: 1.1rem;
}
tr:last-child td {
  border-bottom: none;
}
.plan-btn {
  background: #005990;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}
.plan-btn:hover {
  background: #004070;
}

/* ---------- Footer ---------- */
footer {
  background: #005990;
  color: #fff;
  text-align: center;
  padding: 1rem 2rem;
  margin-top: 2rem;
}
footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #005990;
  padding: 0.8rem;
  text-align: center;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
}
.sticky-cta a {
  background: #ff9800;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}
.sticky-cta a:hover {
  background: #e68900;
}

/* ---------- Mobile nav (scoped) ---------- */
@media (max-width: 768px) {
  /* Header paddings */
  #ptux-header {
    padding: 0.8rem 1rem;
  }

  .ptux-navbar {
    position: relative;
  }

  .ptux-logo-img {
    width: 32px;
    height: 32px;
  }

  .ptux-logo-text {
    font-size: 1.2rem;
  }

  /* Mobile navigation container */
  .ptux-nav {
    position: relative;
  }

  .ptux-nav ul,
  #ptux-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 89, 144, 0.98);
    padding: 4rem 2rem 2rem;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1000;
    margin: 0;
    justify-content: center;
    align-items: center;
  }

  /* JS: ptuxToggleMenu() -> 'ptux-open' sınıfı ekler/çıkarır */
  .ptux-nav ul.ptux-open,
  #ptux-menu.ptux-open {
    display: flex;
  }

  .ptux-nav ul li,
  #ptux-menu li {
    width: 100%;
    text-align: center;
  }

  .ptux-nav ul li a,
  #ptux-menu li a,
  .ptux-menu-link {
    font-size: 1.2rem;
    padding: 1rem;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .ptux-menu-toggle {
    display: block;
    position: relative;
    z-index: 1001;
  }

  /* Hero section mobile */
  .hero {
    padding: 1rem 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .cta-btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    width: 90%;
    max-width: 300px;
  }

  /* Section mobile adjustments */
  .section {
    padding: 1rem 1rem;
  }

  .section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  /* Benefits grid mobile */
  .benefits {
    display: grid;                 /* güvenli olsun diye ekledim */
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .benefit {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }

  .benefit h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .benefit p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Pricing table mobile */
  .pricing {
    margin-top: 2rem;
  }

  .pricing h2 {
    margin-bottom: 1.5rem;
  }

  table {
    font-size: 0.85rem;
    margin: 0 0.5rem;
  }

  th, td {
    padding: 0.7rem 0.5rem;
    font-size: 0.85rem;
  }

  th small {
    font-size: 0.75rem;
  }

  .plan-btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 0.5rem;
  }

  /* Sticky CTA mobile */
  .sticky-cta {
    display: block;
    padding: 1rem;
  }

  .sticky-cta a {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    width: 90%;
    max-width: 300px;
  }
}

/* ---------- Small mobile devices ---------- */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .cta-btn {
    font-size: 0.95rem;
    padding: 0.8rem 1.2rem;
  }

  .section h2 {
    font-size: 1.3rem;
  }

  .benefit {
    padding: 1.2rem;
  }

  .benefit h3 {
    font-size: 1.1rem;
  }

  .benefit p {
    font-size: 0.9rem;
  }

  table {
    font-size: 0.8rem;
  }

  th, td {
    padding: 0.6rem 0.4rem;
  }
}

/* ---------- Tablet adjustments ---------- */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    padding: 2rem 2rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 2rem 2rem;
  }

  .benefits {
    display: grid; /* güvenli */
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .cta-btn {
    padding: 1.1rem 2.2rem;
    font-size: 1.1rem;
  }
}

/* ---------- Smooth scrolling ---------- */
html {
  scroll-behavior: smooth;
}

/* ---------- Touch-friendly interactions ---------- */
@media (hover: none) and (pointer: coarse) {
  .cta-btn, .plan-btn, 
  /* sadece header linklerini genişletelim */
  #ptux-header .ptux-nav a, 
  #ptux-header .ptux-menu-link {
    min-height: 44px;
    min-width: 44px;
  }

  .cta-btn, .plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ---------- Prevent horizontal scroll on mobile ---------- */
body {
  overflow-x: hidden;
  width: 100%;
}

/* ---------- Better table responsiveness ---------- */
@media (max-width: 768px) {
  .pricing {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 600px;
  }
}

/* ---------- Improved mobile navigation animation (scoped) ---------- */
#ptux-header .ptux-nav ul,
#ptux-header #ptux-menu {
  transition: all 0.3s ease-in-out;
}

/* ---------- Better mobile button states ---------- */
.cta-btn:active, .plan-btn:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* ---------- Mobile-first grid adjustments (repeat; consistent) ---------- */
.benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .benefits {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }
}

/* ---------- Mobile performance optimizations ---------- */
@media (max-width: 768px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }

  .hero, .section, .benefit {
    will-change: transform;
  }

  /* Better mobile table handling */
  .pricing {
    position: relative;
  }

  .pricing::after {
    content: "← Scroll →";
    position: absolute;
    top: -10px;
    right: 10px;
    background: #005990;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    opacity: 0.8;
  }

  /* Mobile-friendly spacing */
  .hero + .section {
    margin-top: 0;
  }

  /* Better mobile button sizing */
  .cta-btn, .plan-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 8px;
  }

  /* Mobile navigation improvements (scoped) */
  #ptux-header .ptux-nav ul li a,
  #ptux-header #ptux-menu li a,
  #ptux-header .ptux-menu-link {
    position: relative;
    overflow: hidden;
  }

  #ptux-header .ptux-nav ul li a::after,
  #ptux-header #ptux-menu li a::after,
  #ptux-header .ptux-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff9800;
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  #ptux-header .ptux-nav ul li a:hover::after,
  #ptux-header #ptux-menu li a:hover::after,
  #ptux-header .ptux-menu-link:hover::after {
    width: 100%;
  }
}

/* ---------- Landscape mobile optimization ---------- */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 0.8rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .hero p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .cta-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Üyelik sayfası linkini gizle */
a[href="https://shop.predictrader.com/my-account/members-area/"] {
  display: none !important;
}
/* WooCommerce Hesabım soldaki menüde "Memberships" li'sini komple gizle */
body.woocommerce-account .woocommerce-MyAccount-navigation li:has(> a[href$="/my-account/members-area/"]) {
  display: none !important;
}

/* Woo sayfalarında header ile içerik arasındaki boşluğu kaldır */
#ptux-header { margin-bottom: 0 !important; }

body.woocommerce, 
body.woocommerce-page,
body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-account {
  /* bazı temalar body'ye bile padding-top basıyor */
  padding-top: 0 !important;
}

/* Tema kapsayıcıları */
body.woocommerce-page .site-content,
body.woocommerce-page .content-area,
body.woocommerce-page .site-main,
body.woocommerce .site-content,
body.woocommerce .content-area,
body.woocommerce .site-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Woo başlık/hero blokları */
body.woocommerce-page .page-header,
body.woocommerce-page .entry-header,
body.woocommerce .page-header,
body.woocommerce .entry-header {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
}


.woocommerce-notices-wrapper {
  margin-top: 12px !important; 
}


.woocommerce-checkout .woocommerce-form-coupon,
.woocommerce-checkout .woocommerce-form-login-toggle {
  margin-top: 12px !important;
}

#ptux-header {
  background: #005990;
  color: #fff;
  padding: 1rem 2rem;
  position: relative;
}

#ptux-header .ptux-navbar {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#ptux-header .ptux-logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#ptux-header .ptux-logo-img {
  width: 40px;
  height: 40px;
}

#ptux-header .ptux-logo-text {
  font-size: 1.5rem;
  font-weight: bold;
}

#ptux-header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

#ptux-header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

#ptux-header nav a:hover {
  color: #ff9800;
}
#ptux-header {
  position: relative;
  margin: 0 !important;      
  border: none !important;
  left: 0;
  right: 0;
  width: 100% !important;     
  box-sizing: border-box;
  max-width: 100% !important;  
  overflow-x: hidden;         
}

#ptux-header::before,
#ptux-header::after {
  content: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Hide toggle by default (desktop); theme can override if needed */
.ptux-menu-toggle { display: none; }

/* Prevent background scroll when the menu is open */
html.ptux-lock, body.ptux-lock { overflow: hidden; }

/* MOBILE: at and below 768px we turn the nav into a full-screen drawer */
@media (max-width: 768px) {
  /* Show the hamburger */
  .ptux-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    background: transparent;
    border: 0;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
  }

  /* Nav becomes an overlay */
  .ptux-nav {
    position: fixed;
    inset: 0;
    display: none;               /* hidden by default */
    background: rgba(0, 89, 144, 0.98); /* matches your brand tone; adjust if desired */
    z-index: 9999;
  }

  /* When open, center the menu */
  .ptux-nav.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Stack items vertically */
  .ptux-menu-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: min(90vw, 420px);
    margin: 0;
    padding: 2rem 1.25rem;
    list-style: none;
    text-align: center;
  }

  /* Make links big and tappable */
  .ptux-menu-link {
    display: block;
    padding: 0.9rem 1rem;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.2;
  }
}
.ptux-logo-text {
  color: #fff; /* or your desired brand color */
}
.ptux-logo-container {
  text-decoration: none; /* remove underline from the link */
}

.ptux-logo-text {
  color: #fff; /* keep text white */
  text-decoration: none; /* ensure no underline */
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title,
.woocommerce-account .woocommerce-MyAccount-content .addresses .title {
  position: relative;       
  padding-left: 0 !important;
  background: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title h3::before,
.woocommerce-account .woocommerce-MyAccount-content .addresses .title::before,
.woocommerce-account .woocommerce-MyAccount-content .addresses .title h3::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title i,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title .icon,
.woocommerce-account .woocommerce-MyAccount-content .addresses .title i,
.woocommerce-account .woocommerce-MyAccount-content .addresses .title .icon {
  display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content *::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h2 {
  border-left: none !important;
  padding-left: 0 !important;
}
.woocommerce table.shop_table th.download-remaining,
.woocommerce table.shop_table td.download-remaining,
.woocommerce table.shop_table th.download-expires,
.woocommerce table.shop_table td.download-expires {
  display: none !important;
}
.site-footer, 
#colophon {
  display: none !important;
}
footer.wp-block-template-part {
  display: none !important;
}

.wc-block-components-notice-banner.is-error .wc-block-components-notice-banner__content:contains("Sorry, your session has expired") {
    display: none !important;
}

.wc-block-components-notice-banner.is-error {
    display: none !important;
}