/*
Theme Name: Remindly Desk Theme
Theme URI: https://example.com/remindly-desk
Author: ChatGPT
Author URI: https://example.com
Description: Minimal SaaS-style theme for a plugin landing, account, dashboard and legal pages.
Version: 1.3.7
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: remindly-desk
*/

:root {
  --rd-bg: #0b1020;
  --rd-bg-alt: #111827;
  --rd-accent: #22c55e;
  --rd-accent-soft: #ecfdf3;
  --rd-text: #e5e7eb;
  --rd-text-muted: #9ca3af;
  --rd-border: #1f2937;
  --rd-danger: #ef4444;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827, #020617);
  color: var(--rd-text);
  line-height: 1.5;
}

a {
  color: var(--rd-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.rd-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.rd-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.rd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.rd-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 20px;
  color: #f9fafb;
}

/* Logo mark (green check) */
.rd-logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4), 0 8px 20px rgba(34, 197, 94, 0.35);
}

.rd-logo-mark svg {
  display: block;
}

.rd-logo-circle {
  fill: #22c55e;
}

.rd-logo-check {
  stroke: #022c22;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rd-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.rd-nav a {
  font-size: 14px;
  color: var(--rd-text-muted);
}

.rd-nav-cta {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #bbf7d0 !important;
  font-weight: 500;
}

.rd-nav-cta:hover {
  text-decoration: none;
  background: rgba(34, 197, 94, 0.2);
}

.rd-main {
  padding: 32px 0 48px;
}

.rd-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding: 20px 0 32px;
  font-size: 13px;
  color: var(--rd-text-muted);
}

/* Hero */
.rd-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 40px;
  align-items: start;
  padding: 32px 0 16px;
}

@media (max-width: 900px) {
  .rd-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.rd-hero-kicker {
  font-size: 13px;
  color: #a5b4fc;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.rd-hero-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 10px;
}

.rd-hero-subtitle {
  font-size: 15px;
  color: var(--rd-text-muted);
  max-width: 520px;
  margin-bottom: 12px;
}

.rd-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #bbf7d0;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.rd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.rd-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  box-shadow: 0 12px 25px rgba(34, 197, 94, 0.35);
}

.rd-btn-primary:hover {
  opacity: 0.95;
}

.rd-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.7);
  color: var(--rd-text-muted);
  font-size: 14px;
}

.rd-hero-meta {
  font-size: 13px;
  color: var(--rd-text-muted);
}

.rd-hero-card {
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(34, 197, 94, 0.16), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 18px 18px 14px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.85);
}

.rd-hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}

.rd-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(15, 23, 42, 0.8);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bbf7d0;
}

.rd-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.rd-hero-metric {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.9);
  font-size: 12px;
}

.rd-hero-metric strong {
  display: block;
  font-size: 16px;
  color: #e5e7eb;
}

/* Auth / Dashboard cards */
.rd-card {
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 18px 18px 20px;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.9);
}

.rd-card h1,
.rd-card h2,
.rd-card h3 {
  margin-top: 0;
  color: #f9fafb;
}

.rd-auth-tabs {
  display: flex;
  gap: 6px;
  border-radius: 999px;
  padding: 3px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(31, 41, 55, 0.9);
  margin-bottom: 16px;
}

.rd-auth-tab {
  flex: 1;
  text-align: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  color: var(--rd-text-muted);
}

.rd-auth-tab.active {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
  font-weight: 600;
}

.rd-field {
  margin-bottom: 12px;
}

.rd-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--rd-text-muted);
}

.rd-field input,
.rd-field textarea {
  width: 100%;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-size: 14px;
}

.rd-field textarea {
  min-height: 90px;
  resize: vertical;
}

.rd-field input:focus,
.rd-field textarea:focus {
  outline: 1px solid rgba(34, 197, 94, 0.7);
  border-color: rgba(34, 197, 94, 0.7);
}

.rd-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(34, 197, 94, 0.35);
}

.rd-btn-submit:hover {
  opacity: 0.96;
}

.rd-text-muted {
  color: var(--rd-text-muted);
  font-size: 13px;
}

.rd-alert {
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 12px;
}

.rd-alert-success {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.6);
  color: #bbf7d0;
}

.rd-alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.7);
  color: #fecaca;
}

.rd-dashboard-grid {
  display: grid;
  gap: 14px;
}

.rd-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.rd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: var(--rd-text-muted);
}

/* Contact */
.rd-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .rd-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* --- Remindly custom tweaks: navigation, auth card, inputs, mobile --- */

/* Narrower auth card on Account page */
.page-account .rd-card {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Brighter auth buttons already use rd-btn-submit; keep as-is but ensure nice glow */
.rd-btn-submit {
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.45);
}

/* Navigation: auth group + primary Sign up */
.rd-nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rd-nav-cta-primary {
  background: var(--rd-accent);
  border-color: var(--rd-accent);
  color: #020617 !important;
  box-shadow: 0 12px 22px rgba(34, 197, 94, 0.5);
}

.rd-nav-cta-primary:hover {
  background: #16a34a;
}

/* Align input heights for date / time / number fields */
.rd-field input[type="date"],
.rd-field input[type="time"],
.rd-field input[type="number"] {
  height: 40px;
  line-height: 1.2;
}

/* Burger button */
.rd-burger {
  display: none;
  width: 26px;
  height: 20px;
  margin-left: auto;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.rd-burger span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: #f9fafb;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

/* Burger animation */
body.rd-mobile-nav-open .rd-burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
body.rd-mobile-nav-open .rd-burger span:nth-child(2) {
  opacity: 0;
}
body.rd-mobile-nav-open .rd-burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile navigation */
@media (max-width: 900px) {
  .rd-header-inner {
    gap: 10px;
  }

  .rd-burger {
    display: flex;
  }

  .rd-nav {
    position: fixed;
    top: 56px;
    right: 16px;
    left: 16px;
    background: #020617;
    padding: 10px 14px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    z-index: 9998;
  }

  body.rd-mobile-nav-open .rd-nav {
    display: flex;
  }

  .rd-nav a {
    display: block;
    padding: 4px 0;
  }

  .rd-nav-auth {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 4px;
  }

  .rd-nav-cta {
    width: 100%;
    text-align: center;
  }
}

/* Small tweak: reduce vertical gap between menu items for very small screens */
@media (max-width: 480px) {
  .rd-nav {
    gap: 4px;
    padding: 8px 12px;
  }
}

/* Hide meta date under title on About/Contact pages if theme still outputs it as a separate element */
body.page-about .rd-card > h1 + .rd-text-muted,
body.page-contact .rd-card > h1 + .rd-text-muted {
  display: none !important;
}


/* === Pay page full-screen layout for Dodo MultiPay === */
body.rd-body-pay {
  background: #ffffff;
}

.rd-pay-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #ffffff;
}

.rd-pay-card {
  background: #020617;
  color: #ffffff;
  border-radius: 24px;
  padding: 24px 22px 26px;
  max-width: 430px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.55);
}

.rd-pay-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
}

.rd-pay-price {
  font-size: 14px;
  margin-bottom: 18px;
}

.rd-pay-price strong {
  font-weight: 700;
}

.rd-pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.rd-pay-label {
  font-size: 14px;
  color: #e5e7eb;
}

.rd-pay-select {
  min-width: 120px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #22c55e;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
}

.rd-pay-select:focus {
  outline: none;
  box-shadow: 0 0 0 1px #22c55e;
}

.rd-pay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 999px;
  background: #22c55e;
  color: #022c22;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.rd-pay-button:hover {
  filter: brightness(1.05);
}

.rd-pay-note {
  margin-top: 12px;
  font-size: 12px;
  color: #e5e7eb;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .rd-pay-card {
    padding: 20px 18px 22px;
  }
}


/* Extra styling for MultiPay select dropdown */
.rd-pay-select option {
  background-color: #020617;
  color: #ffffff;
}

.rd-pay-select option:checked,
.rd-pay-select option:hover {
  background-color: #111827;
  color: #ffffff;
}


/* Language switcher */
.rd-lang { display:flex; align-items:center; gap:6px; margin-left:10px; }
.rd-lang-link { font-size:12px; padding:4px 8px; border-radius:999px; border:1px solid rgba(55,65,81,.9); color:#cbd5e1; }
.rd-lang-link.is-active { border-color: rgba(34,197,94,.8); color:#bbf7d0; background: rgba(34,197,94,.10); }
.rd-lang-link:hover { text-decoration:none; }

/* Hero refinements */
.rd-price-pill{
  display:inline-flex; align-items:baseline; gap:8px;
  padding:10px 14px; border-radius:999px;
  background: rgba(15,23,42,.95); border:1px solid rgba(31,41,55,.9);
}

/* Mock UI */
.rd-mock{
  border-radius: 18px;
  border: 1px solid rgba(55,65,81,.9);
  background: rgba(15,23,42,.95);
  overflow:hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.rd-mock-top{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-bottom: 1px solid rgba(31,41,55,.9);
}
.rd-mock-dot{ width:10px;height:10px;border-radius:999px;background:rgba(148,163,184,.55); }
.rd-mock-title{ margin-left:auto; font-size:12px; color:#9ca3af; }
.rd-mock-body{ padding:14px 14px 12px; }
.rd-mock-row{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:10px; }
.rd-mock-label{ width:70px; font-size:12px; color:#9ca3af; }
.rd-mock-chip{ font-size:12px; padding:4px 8px; border-radius:999px; border:1px solid rgba(55,65,81,.9); background:rgba(2,6,23,.4); color:#e5e7eb; }
.rd-mock-code{ font-size:12px; padding:4px 8px; border-radius:10px; border:1px solid rgba(55,65,81,.9); background:rgba(2,6,23,.5); color:#e5e7eb; }
.rd-mock-progress{ flex:1; min-width:120px; height:10px; border-radius:999px; background: rgba(55,65,81,.35); overflow:hidden; border:1px solid rgba(55,65,81,.5); }
.rd-mock-progress span{ display:block; height:100%; background: rgba(34,197,94,.75); }
.rd-mock-muted{ font-size:12px; color:#9ca3af; }
.rd-mock-actions{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.rd-mock-btn{ font-size:12px; padding:6px 10px; border-radius:12px; border:1px solid rgba(55,65,81,.9); color:#e5e7eb; background: rgba(2,6,23,.35); }
.rd-mock-btn-primary{ border-color: rgba(34,197,94,.8); background: rgba(34,197,94,.12); color:#bbf7d0; }
.rd-mock-note{ margin:12px 0 0; font-size:12px; color:#9ca3af; }

/* Auth + Alerts */
.rd-auth-wrap{ max-width: 520px; margin: 0 auto; }
.rd-alert{ padding:10px 12px; border-radius:12px; margin:10px 0 12px; border:1px solid rgba(55,65,81,.9); }
.rd-alert-success{ background: rgba(34,197,94,.10); color:#bbf7d0; border-color: rgba(34,197,94,.35); }
.rd-alert-error{ background: rgba(239,68,68,.08); color:#fecaca; border-color: rgba(239,68,68,.35); }
.rd-auth-panels{ margin-top: 12px; display:grid; gap: 18px; }
.rd-auth-panel{ display:none; padding: 12px; border-radius: 14px; border: 1px solid rgba(55,65,81,.7); background: rgba(2,6,23,.25); }
.rd-auth-panel.is-active{ display:block; }
.rd-auth-panels .rd-auth-panel:first-child{ display:block; }
.rd-h2{ font-size: 16px; margin: 0 0 10px; }

/* Dashboard */
.rd-dashboard-wrap{ max-width: 980px; margin: 0 auto; }
.rd-dashboard-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.rd-dashboard-meta{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.rd-badge-status{ background: rgba(2,6,23,.35); }
.rd-status-dot{ width:6px;height:6px;border-radius:999px;background: rgba(34,197,94,.8); display:inline-block; }
.rd-days-inline{ display:flex; align-items:baseline; gap:8px; }
.rd-days-inline-number{ font-size: 18px; font-weight: 700; line-height: 1; }
.rd-days-inline{ display:flex; align-items:baseline; gap:8px; }
.rd-days-inline-number{ font-size: 18px; font-weight: 700; line-height: 1; }
.rd-days-card{
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(55,65,81,.7);
  background: rgba(2,6,23,.25);
  display:flex; align-items:baseline; gap:10px;
}
.rd-days-number{ font-size: 36px; font-weight: 700; line-height: 1; }
.rd-kv{ display:flex; gap:12px; align-items:baseline; margin-top: 12px; }
.rd-kv-label{ width:120px; font-size:12px; color:#9ca3af; }
.rd-kv-value{ flex:1; }
.rd-split{ margin-top: 16px; display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px){ .rd-split{ grid-template-columns: 1fr; } }
.rd-sites{ list-style:none; padding:0; margin: 10px 0 0; display:grid; gap: 10px; }
.rd-site{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px; border-radius: 14px; border:1px solid rgba(55,65,81,.7); background: rgba(2,6,23,.25); }
.rd-site-url{ font-size: 13px; color:#e5e7eb; overflow:hidden; text-overflow: ellipsis; white-space:nowrap; max-width: 520px; }
.rd-btn-small{ padding: 6px 10px; font-size: 12px; border-radius: 12px; }
.rd-pay-grid{ margin-top: 12px; display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px){ .rd-pay-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rd-pay-btn{
  display:flex; align-items:center; justify-content:center;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(55,65,81,.9);
  background: rgba(2,6,23,.35);
  color:#e5e7eb;
}
.rd-pay-btn:hover{ text-decoration:none; border-color: rgba(34,197,94,.7); background: rgba(34,197,94,.10); color:#bbf7d0; }

.rd-support-email{
  font-weight: 700;
  color: #bbf7d0;
  text-decoration: none;
}
.rd-support-email:hover{ text-decoration: underline; }

.rd-footer-inner{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
.rd-footer-links{ display:flex; gap: 12px; font-size: 13px; }
.rd-auth-tab.is-active{ background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.45); color:#bbf7d0; }
