/* redseo-login-modal — appearance owned by the child theme */
:root {
  --redseo-login-overlay-bg: rgba(5, 20, 34, 0.72);
  --redseo-login-overlay-blur: 0px;
  --redseo-login-dialog-bg: #fff;
  --redseo-login-dialog-color: #17212b;
  --redseo-login-dialog-radius: 16px;
  --redseo-login-dialog-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  --redseo-login-dialog-border: none;
  --redseo-login-dialog-max-width: 440px;
  --redseo-login-dialog-padding: 32px;
  --redseo-login-font-family: inherit;
  --redseo-login-label-color: inherit;
  --redseo-login-input-bg: #fff;
  --redseo-login-input-border: #a7b0b8;
  --redseo-login-input-radius: 8px;
  --redseo-login-input-color: inherit;
  --redseo-login-input-focus-border: #0b3555;
  --redseo-login-input-focus-shadow: none;
  --redseo-login-btn-bg: #0b3555;
  --redseo-login-btn-color: #fff;
  --redseo-login-btn-radius: 8px;
  --redseo-login-btn-hover-bg: #08273f;
  --redseo-login-btn-hover-color: #fff;
  --redseo-login-btn-shadow: none;
  --redseo-login-secondary-border: #0b3555;
  --redseo-login-secondary-color: #0b3555;
  --redseo-login-secondary-bg: #fff;
  --redseo-login-secondary-hover-border: #08273f;
  --redseo-login-secondary-hover-color: #08273f;
  --redseo-login-secondary-hover-bg: #f8fafc;
  --redseo-login-close-color: inherit;
  --redseo-login-close-hover-color: inherit;
}

.redseo-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--redseo-login-overlay-bg);
  backdrop-filter: var(--redseo-login-overlay-blur);
  -webkit-backdrop-filter: var(--redseo-login-overlay-blur);
}
.redseo-login-overlay[hidden] {
  display: none;
}
.redseo-login-open {
  overflow: hidden;
}
.redseo-login-dialog {
  position: relative;
  width: min(100%, var(--redseo-login-dialog-max-width));
  padding: var(--redseo-login-dialog-padding);
  border-radius: var(--redseo-login-dialog-radius);
  background: var(--redseo-login-dialog-bg);
  color: var(--redseo-login-dialog-color);
  box-shadow: var(--redseo-login-dialog-shadow);
  border: var(--redseo-login-dialog-border);
  font-family: var(--redseo-login-font-family);
  box-sizing: border-box;
}
.redseo-login-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
  color: var(--redseo-login-close-color);
  line-height: 1;
}
.redseo-login-close:hover {
  color: var(--redseo-login-close-hover-color);
}
.redseo-login-dialog h2 {
  margin: 0 0 18px;
}
.redseo-login-dialog label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--redseo-login-label-color);
}
.redseo-login-dialog input[type=text],
.redseo-login-dialog input[type=password],
.redseo-login-dialog input[type=email] {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--redseo-login-input-border);
  border-radius: var(--redseo-login-input-radius);
  background: var(--redseo-login-input-bg);
  color: var(--redseo-login-input-color);
  font: inherit;
  outline: none;
}
.redseo-login-dialog input[type=text]:focus,
.redseo-login-dialog input[type=password]:focus,
.redseo-login-dialog input[type=email]:focus {
  border-color: var(--redseo-login-input-focus-border);
  box-shadow: var(--redseo-login-input-focus-shadow);
}
.redseo-login-dialog button[type=submit],
.redseo-login-button {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 18px;
  border: 0;
  border-radius: var(--redseo-login-btn-radius);
  background: var(--redseo-login-btn-bg);
  color: var(--redseo-login-btn-color);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--redseo-login-btn-shadow);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.redseo-login-dialog button[type=submit]:hover,
.redseo-login-button:hover {
  background: var(--redseo-login-btn-hover-bg);
  color: var(--redseo-login-btn-hover-color);
}
.redseo-login-secondary {
  box-sizing: border-box;
  margin-left: 8px;
  padding: 10px;
  border: 1px solid var(--redseo-login-secondary-border);
  border-radius: var(--redseo-login-btn-radius);
  background: var(--redseo-login-secondary-bg);
  color: var(--redseo-login-secondary-color);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.redseo-login-secondary:hover {
  border-color: var(--redseo-login-secondary-hover-border);
  color: var(--redseo-login-secondary-hover-color);
  background: var(--redseo-login-secondary-hover-bg);
}
.redseo-login-remember {
  display: flex !important;
  grid-template-columns: auto 1fr !important;
  align-items: center;
  margin: 12px 0 18px;
}
.redseo-login-message {
  min-height: 1.5em;
}
.redseo-login-message.is-error {
  color: #a52020;
}
@media(max-width:480px) {
  .redseo-login-dialog {
    padding: 26px 20px;
  }
}

/* redseo-private-panel — appearance owned by the child theme */
.redseo-private-panel{display:grid;grid-template-columns:minmax(210px,260px) minmax(0,1fr);gap:28px;align-items:start}
.redseo-panel-nav{display:grid;gap:6px;padding:18px;border:1px solid #d9dfe4;border-radius:14px;background:#f7f9fa}
.redseo-panel-tabs{display:grid;gap:6px}.redseo-panel-user{margin:0 0 10px;font-weight:800}.redseo-panel-tab,.redseo-panel-logout{padding:11px 13px;border:0;border-radius:8px;background:transparent;text-align:left;font:inherit;cursor:pointer}
.redseo-panel-tab.is-active{background:#0b3555;color:#fff}.redseo-panel-logout{margin-top:12px;color:#9a2424}
.redseo-panel-section{padding:24px;border:1px solid #d9dfe4;border-radius:14px;background:#fff}.redseo-panel-section[hidden]{display:none}
.redseo-panel-section form{max-width:560px}.redseo-panel-section label{display:grid;gap:6px;font-weight:600}.redseo-panel-section input{box-sizing:border-box;width:100%;padding:11px;border:1px solid #a7b0b8;border-radius:8px;font:inherit}
.redseo-panel-section button,.redseo-panel-login button{padding:11px 17px;border:0;border-radius:8px;background:#0b3555;color:#fff;font-weight:700;cursor:pointer}
.redseo-panel-message{min-height:1.5em}.redseo-panel-message.is-error{color:#a52020}.redseo-panel-menu-toggle{display:none}
@media(max-width:760px){.redseo-private-panel{grid-template-columns:1fr}.redseo-panel-menu-toggle{display:block}.redseo-panel-nav{display:none}.redseo-panel-nav.is-open{display:grid}}

/* redseo-gallery-lightbox — appearance owned by the child theme */
/**
 * REDSEO Gallery Lightbox CSS
 */

:root {
  --rgl-backdrop-dark: rgba(10, 15, 29, 0.92);
  --rgl-backdrop-light: rgba(248, 250, 252, 0.94);
  --rgl-btn-bg-dark: rgba(255, 255, 255, 0.12);
  --rgl-btn-color-dark: #ffffff;
  --rgl-btn-bg-light: rgba(15, 23, 42, 0.08);
  --rgl-btn-color-light: #0f172a;
  --rgl-accent: #2563eb;
}

.rgl-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  user-select: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rgl-backdrop.rgl-active {
  opacity: 1;
  visibility: visible;
}

.rgl-theme-dark {
  background: var(--rgl-backdrop-dark);
  color: #ffffff;
}

.rgl-theme-light {
  background: var(--rgl-backdrop-light);
  color: #0f172a;
}

@media (prefers-color-scheme: light) {
  .rgl-theme-auto {
    background: var(--rgl-backdrop-light);
    color: #0f172a;
  }
}
@media (prefers-color-scheme: dark) {
  .rgl-theme-auto {
    background: var(--rgl-backdrop-dark);
    color: #ffffff;
  }
}

.rgl-container {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  outline: none;
}

.rgl-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.rgl-image {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.rgl-image.rgl-loaded {
  transform: scale(1);
  opacity: 1;
}

.rgl-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  max-width: 80vw;
  line-height: 1.4;
  opacity: 0.9;
}

/* Control Buttons */
.rgl-btn {
  position: absolute;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s, transform 0.15s, opacity 0.15s;
  z-index: 10;
  outline: none;
}

.rgl-theme-dark .rgl-btn,
.rgl-theme-auto .rgl-btn {
  background: var(--rgl-btn-bg-dark);
  color: var(--rgl-btn-color-dark);
}

.rgl-theme-light .rgl-btn {
  background: var(--rgl-btn-bg-light);
  color: var(--rgl-btn-color-light);
}

.rgl-btn:hover {
  transform: scale(1.08);
  opacity: 1;
}

.rgl-theme-dark .rgl-btn:hover,
.rgl-theme-auto .rgl-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.rgl-theme-light .rgl-btn:hover {
  background: rgba(15, 23, 42, 0.18);
}

.rgl-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--rgl-accent);
}

.rgl-btn-close {
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
}

.rgl-btn-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 1.75rem;
  line-height: 1;
}

.rgl-btn-prev {
  left: 1.5rem;
}

.rgl-btn-next {
  right: 1.5rem;
}

/* Top Bar: Counter */
.rgl-counter {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: 10;
}

/* Spinner */
.rgl-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: rgl-spin 0.8s linear infinite;
  position: absolute;
}

@keyframes rgl-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .rgl-btn-nav {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
  .rgl-btn-prev { left: 0.5rem; }
  .rgl-btn-next { right: 0.5rem; }
  .rgl-btn-close { top: 0.75rem; right: 0.75rem; width: 38px; height: 38px; }
  .rgl-counter { top: 0.75rem; left: 0.75rem; font-size: 0.78rem; }
}

/* redseo-pwa-app — appearance owned by the child theme */
/**
 * REDSEO PWA & Mobile App Styles
 * Accessible, responsive, modern card and modal styles.
 */

:root {
    --redseo-pwa-primary: #0b1f35;
    --redseo-pwa-primary-hover: #16365c;
    --redseo-pwa-accent: #e7ad31;
    --redseo-pwa-text: #1e293b;
    --redseo-pwa-muted: #64748b;
    --redseo-pwa-bg: #ffffff;
    --redseo-pwa-border: #e2e8f0;
    --redseo-pwa-radius: 16px;
    --redseo-pwa-shadow: 0 16px 32px -8px rgba(11, 31, 53, 0.16), 0 4px 12px rgba(0,0,0,0.06);
}

/* Card Component for Dashboard / Shortcode */
.redseo-pwa-card {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0;
    padding: 24px;
    background: var(--redseo-pwa-bg);
    border: 1px solid var(--redseo-pwa-border);
    border-radius: var(--redseo-pwa-radius);
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.redseo-pwa-card:hover {
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
}

.redseo-pwa-card-icon {
    flex: 0 0 auto;
}

.redseo-pwa-card-icon img {
    display: block;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.redseo-pwa-card-content {
    flex: 1 1 auto;
}

.redseo-pwa-card-title {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--redseo-pwa-primary);
}

.redseo-pwa-card-desc {
    margin: 0;
    font-size: 0.95rem;
    color: var(--redseo-pwa-muted);
    line-height: 1.45;
}

.redseo-pwa-status {
    margin: 8px 0 0 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--redseo-pwa-accent);
}

.redseo-pwa-card-action {
    flex: 0 0 auto;
}

/* Buttons */
.redseo-pwa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background-color .15s ease, transform .1s ease;
    box-sizing: border-box;
}

.redseo-pwa-btn:active {
    transform: scale(0.98);
}

.redseo-pwa-btn-primary {
    background: var(--redseo-pwa-primary);
    color: #ffffff !important;
}

.redseo-pwa-btn-primary:hover {
    background: var(--redseo-pwa-primary-hover);
    color: #ffffff !important;
}

.redseo-pwa-btn-secondary {
    background: #f1f5f9;
    color: var(--redseo-pwa-text) !important;
}

.redseo-pwa-btn-secondary:hover {
    background: #e2e8f0;
}

.redseo-pwa-btn-link {
    background: transparent;
    color: var(--redseo-pwa-muted);
    border: none;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 6px 12px;
}

.redseo-pwa-btn-link:hover {
    color: var(--redseo-pwa-text);
}

/* Dialog Modal */
dialog.redseo-pwa-dialog {
    border: none;
    border-radius: var(--redseo-pwa-radius);
    padding: 28px 24px;
    max-width: 440px;
    width: 90%;
    background: var(--redseo-pwa-bg);
    box-shadow: var(--redseo-pwa-shadow);
    color: var(--redseo-pwa-text);
    position: fixed;
    margin: auto;
    inset: 0;
    z-index: 999999;
}

dialog.redseo-pwa-dialog::backdrop {
    background: rgba(11, 31, 53, 0.45);
    backdrop-filter: blur(4px);
}

.redseo-pwa-dialog-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--redseo-pwa-muted);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.redseo-pwa-dialog-close:hover {
    color: var(--redseo-pwa-text);
}

.redseo-pwa-dialog-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.redseo-pwa-dialog-icon {
    border-radius: 12px;
    flex: 0 0 64px;
}

.redseo-pwa-dialog-info h3 {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    color: var(--redseo-pwa-primary);
}

.redseo-pwa-dialog-info p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--redseo-pwa-muted);
    line-height: 1.45;
}

.redseo-pwa-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

/* iOS Specific Guide */
.redseo-pwa-ios-steps {
    margin: 16px 0 24px 0;
    padding-left: 20px;
    font-size: 0.95rem;
    color: var(--redseo-pwa-text);
    line-height: 1.6;
}

.redseo-pwa-ios-steps li {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 640px) {
    .redseo-pwa-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .redseo-pwa-card-action {
        width: 100%;
        margin-top: 10px;
    }
    .redseo-pwa-card-action .redseo-pwa-btn {
        width: 100%;
    }
    .redseo-pwa-dialog-actions {
        flex-direction: column;
        width: 100%;
    }
    .redseo-pwa-dialog-actions .redseo-pwa-btn {
        width: 100%;
    }
}

.rgl-trigger{cursor:zoom-in}.redseo-turnstile-container{margin-bottom:1rem}
