/*
Theme Name: Snooker Practice Routines
Theme URI: https://www.snooker-practice-routines.co.uk
Author: WebStacked
Author URI: https://www.WebStacked.co.uk
Description: Dark green theme for Snooker Practice Routines, matching the app. Logo centred in the header with the Students menu on the left and the Coaches menu on the right, animated 3D routine tables as decoration, and Elementor widgets for routine packs, app buttons and the Coach Area.
Version: 1.3.11
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spr-theme
Tags: dark, custom-logo, custom-menu, featured-images, full-width-template, e-commerce
*/

:root {
  --spr-bg: #0b1712;
  --spr-bg-2: #0f1f18;
  --spr-card: #13241c;
  --spr-card-2: #1a2f25;
  --spr-line: rgba(255, 255, 255, 0.08);
  --spr-text: #eef4f0;
  --spr-muted: #9fb3a8;
  --spr-accent: #22c55e;
  --spr-accent-deep: #15803d;
  --spr-red: #c0141d;
  --spr-radius: 16px;
  --spr-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --spr-font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --spr-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(ellipse at 50% -10%, #173a28 0%, var(--spr-bg) 55%) fixed, var(--spr-bg);
  color: var(--spr-text);
  font: 17px/1.65 var(--spr-font);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--spr-accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--spr-accent); outline-offset: 2px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; padding: 10px 16px;
  background: var(--spr-accent); color: #fff; border-radius: 8px;
}

.container { width: min(var(--spr-width), 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }

/* ---- buttons ---------------------------------------------------------------------------------- */

.button, button.button, .wp-element-button, input[type='submit'] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--spr-accent); color: #fff; font: 700 1rem/1.2 var(--spr-font);
  text-decoration: none; transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover, .wp-element-button:hover, input[type='submit']:hover { background: #2fd96c; text-decoration: none; transform: translateY(-1px); }
.button--ghost { background: transparent; color: var(--spr-text); box-shadow: inset 0 0 0 2px var(--spr-accent); }
.button--ghost:hover { background: rgba(34, 197, 94, 0.15); }
.button.is-disabled { background: var(--spr-card-2); color: var(--spr-muted); cursor: default; transform: none; }

/* ---- header: Students | logo | Coaches ---------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 23, 18, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--spr-line);
  transition: box-shadow 0.2s ease;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); }
/*
 * The header slims down once the page is scrolled. Its space in the page must not change while it does,
 * or the browser shifts the page to make up for it, which crosses the scroll point again and the header
 * shakes. So as the padding and logo shrink, a bottom margin grows by the same amount, at the same speed:
 * the total stays exactly the same on every frame.
 */
.site-header { --spr-header-shrink: 46px; margin-bottom: 0; transition: box-shadow 0.2s ease, margin-bottom 0.2s ease; }
.site-header.is-scrolled { margin-bottom: var(--spr-header-shrink); }

/* The Find bar: coaches and clubs, apart from the main menus. */
.finder-bar { border-bottom: 1px solid var(--spr-line); background: rgba(5, 12, 9, 0.6); }
.finder-bar__nav { width: min(1440px, 100% - 40px); margin-inline: auto; }
.finder-bar__menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.finder-bar__menu a {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 0; color: var(--spr-muted);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; line-height: 1.2;
}
.finder-bar__menu a::before {
  content: ''; width: 14px; height: 14px; flex: none; background: var(--spr-accent);
  -webkit-mask: var(--spr-pin) center / contain no-repeat; mask: var(--spr-pin) center / contain no-repeat;
}
.finder-bar__menu a:hover, .finder-bar__menu .current-menu-item > a { color: #fff; text-decoration: none; }
.finder-bar__menu .sub-menu { display: none; }
:root { --spr-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }

.site-header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  width: min(1440px, 100% - 40px); margin-inline: auto; padding: 14px 0;
  transition: padding 0.2s ease;
}
.site-header.is-scrolled .site-header__inner { padding: 6px 0; }

.site-brand { text-align: center; }
.site-brand .custom-logo { display: block; width: auto; height: 86px; margin: 0 auto; transition: height 0.2s ease; }
.site-header.is-scrolled .site-brand .custom-logo { height: 56px; }

.site-nav { display: flex; align-items: center; gap: 14px; min-width: 0; }
.site-nav--students { justify-content: flex-end; }
.site-nav--coaches { justify-content: flex-start; }
.site-nav__title {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--spr-accent); padding: 4px 10px; border: 1px solid rgba(34, 197, 94, 0.4); border-radius: 999px; white-space: nowrap;
}
.site-nav--students .site-nav__title { order: 2; }
.site-nav__menu { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0; padding: 0; }
/* The small "Students" / "Coaches" labels give way first when space runs short. */
@media (max-width: 1380px) { .site-nav__title { display: none; } }
.site-nav--students .site-nav__menu { justify-content: flex-end; }
.site-nav__menu a {
  display: block; padding: 6px 0; color: var(--spr-text); font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav__menu a:hover, .site-nav__menu .current-menu-item > a { color: #fff; border-bottom-color: var(--spr-accent); text-decoration: none; }
.site-nav__menu .sub-menu {
  display: none; position: absolute; min-width: 200px; list-style: none; margin: 0; padding: 8px 14px;
  background: var(--spr-card); border: 1px solid var(--spr-line); border-radius: 12px; box-shadow: var(--spr-shadow);
}
.site-nav__menu li { position: relative; }
.site-nav__menu li:hover > .sub-menu, .site-nav__menu li:focus-within > .sub-menu { display: block; }

.site-cart { position: relative; display: inline-flex; color: var(--spr-text); }
.site-cart svg { width: 24px; height: 24px; }
.site-cart span {
  position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--spr-red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

.menu-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 960px) {
  .site-header__inner { grid-template-columns: 44px 1fr 44px; gap: 10px; }
  .site-nav { display: none; }
  .site-brand { grid-column: 2; }
  .site-brand .custom-logo { height: 60px; }
  .site-header.is-scrolled .site-brand .custom-logo { height: 46px; }
  .site-header { --spr-header-shrink: 30px; }
  .finder-bar__menu { gap: 2px 16px; }
  .finder-bar__menu a { font-size: 0.78rem; padding: 6px 0; }
  .menu-toggle {
    grid-column: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    background: var(--spr-card); border: 1px solid var(--spr-line); border-radius: 12px; color: var(--spr-text); cursor: pointer;
  }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s ease;
  }
  .menu-toggle__bars { position: relative; }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ''; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -6px; }
  .menu-toggle__bars::after { top: 6px; }
  .menu-toggle[aria-expanded='true'] .menu-toggle__bars { background: transparent; }
  .menu-toggle[aria-expanded='true'] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .mobile-menu:not([hidden]) {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 18px 20px 24px;
    border-top: 1px solid var(--spr-line); background: var(--spr-bg-2);
  }
  .mobile-menu h2 {
    font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--spr-accent); margin-bottom: 8px;
  }
  .mobile-menu__list { list-style: none; margin: 0; padding: 0; }
  .mobile-menu__list a { display: block; padding: 8px 0; color: var(--spr-text); font-weight: 600; }
  .mobile-menu__list .sub-menu { list-style: none; padding-left: 12px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 420px) { .mobile-menu:not([hidden]) { grid-template-columns: 1fr; } }
/* Phones: both Find links on one line. */
@media (max-width: 460px) {
  .finder-bar__nav { width: calc(100% - 16px); }
  .finder-bar__menu { flex-wrap: nowrap; gap: 14px; }
  .finder-bar__menu a { font-size: 0.72rem; gap: 5px; letter-spacing: 0; }
  .finder-bar__menu a::before { width: 12px; height: 12px; }
}

/* ---- page content ------------------------------------------------------------------------------ */

.site-main { padding: 48px 0 64px; min-height: 50vh; }
.site-main--elementor { padding: 0; }
.page-title { margin-bottom: 0.8em; }
.entry-content > * + * { margin-top: 1em; }
.entry-content img { border-radius: 12px; }
.entry-image img { width: 100%; border-radius: var(--spr-radius); margin-bottom: 24px; }

input[type='text'], input[type='email'], input[type='password'], input[type='search'], input[type='tel'],
input[type='number'], input[type='url'], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--spr-line);
  background: var(--spr-card); color: var(--spr-text); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--spr-accent); outline-offset: 1px; }
label { font-weight: 600; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid var(--spr-line); text-align: left; }

blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--spr-accent); background: var(--spr-card); border-radius: 0 12px 12px 0; }

/* ---- hero (home page without Elementor) ------------------------------------------------------------ */

.hero { position: relative; overflow: hidden; padding: 30px 0 70px; text-align: center; }
.hero__tables {
  display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; gap: 18px;
  width: min(1320px, 100% - 24px); margin: 0 auto;
}
.hero__table--left { transform: rotate(-5deg) translateY(30px); }
.hero__table--right { transform: rotate(5deg) translateY(30px); }
.hero__text { position: relative; }
.hero__title { font-size: clamp(2.2rem, 6vw, 4.2rem); margin-top: 40px; }
.hero__lead { max-width: 640px; margin: 0 auto 26px; color: var(--spr-muted); font-size: 1.15rem; }
@media (max-width: 760px) {
  .hero__tables { grid-template-columns: 1fr; }
  .hero__table--left, .hero__table--right { display: none; }
}

.section { padding: 40px 0; }
.section__title { text-align: center; margin-bottom: 1.2em; }

/* ---- animated 3D tables ------------------------------------------------------------------------ */

.spr-table3d {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--spr-radius);
  background: radial-gradient(ellipse at 50% 30%, #1d3a2b 0%, #0c1813 75%);
  box-shadow: var(--spr-shadow), inset 0 0 0 1px var(--spr-line);
}
/* Other plugins' styles can hide elements with generic class names: the tables must always show. */
.spr-table3d, .spr-table3d canvas { visibility: visible !important; }
.spr-table3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.spr-table3d__caption { z-index: 1; }

/* Routine Graphic widget: text over the table */
.spr-graphic { height: 420px; }
.spr-graphic--empty {
  display: grid; place-items: center; height: 200px; padding: 20px; text-align: center;
  border: 2px dashed var(--spr-line); border-radius: var(--spr-radius); color: var(--spr-muted); background: var(--spr-card);
}
.spr-graphic__overlay {
  position: absolute; inset: 0; z-index: 1; display: flex; padding: 20px; pointer-events: none;
}
.spr-graphic__overlay--top-left { align-items: flex-start; justify-content: flex-start; }
.spr-graphic__overlay--top-center { align-items: flex-start; justify-content: center; }
.spr-graphic__overlay--center { align-items: center; justify-content: center; }
.spr-graphic__overlay--bottom-left { align-items: flex-end; justify-content: flex-start; }
.spr-graphic__overlay--bottom-center { align-items: flex-end; justify-content: center; }
.spr-graphic__overlay--bottom-right { align-items: flex-end; justify-content: flex-end; }
.spr-graphic__overlay--top-center .spr-graphic__panel, .spr-graphic__overlay--center .spr-graphic__panel,
.spr-graphic__overlay--bottom-center .spr-graphic__panel { text-align: center; }
.spr-graphic__panel {
  max-width: 460px; padding: 16px 20px; border-radius: 14px; pointer-events: auto;
  background: rgba(7, 16, 12, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.spr-graphic__panel .level { margin-bottom: 8px; }
.spr-graphic__title { margin: 0 0 6px; font-size: 1.4rem; color: #fff; }
.spr-graphic__description { margin: 0 0 10px; color: var(--spr-muted); font-size: 0.95rem; }
.spr-graphic__description:last-child { margin-bottom: 0; }
.spr-graphic__button { margin-top: 4px; padding: 10px 20px; font-size: 0.95rem; }
.spr-table3d__caption {
  position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.85rem; text-shadow: 0 1px 4px #000;
}
/* A routine played out (spr-player.js): captions over the bottom of the table, the name at the top. */
.spr-player__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.spr-table3d--play .spr-table3d__caption { top: 10px; bottom: auto; }
.spr-player__caption {
  position: absolute; left: 50%; bottom: 14px; z-index: 2; translate: -50% 0;
  width: max-content; max-width: calc(100% - 28px); padding: 8px 14px; border-radius: 10px;
  background: rgba(6, 12, 9, 0.78); color: #fff; text-align: center;
  font-size: clamp(0.8rem, 2.4vw, 1rem); line-height: 1.35; font-weight: 600;
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.spr-player__caption.is-shown { opacity: 1; }
.spr-table3d.is-floating { animation: spr-float 7s ease-in-out infinite; }
.spr-table3d.is-floating:nth-of-type(2n) { animation-delay: -2.3s; }
.spr-table3d.is-floating:nth-of-type(3n) { animation-delay: -4.6s; }
@keyframes spr-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .spr-table3d.is-floating { animation: none; }
  html { scroll-behavior: auto; }
}

.level {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  background: rgba(34, 197, 94, 0.2); color: #4ade80; text-shadow: none;
}
.level--intermediate { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.level--advanced { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.table-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; width: min(var(--spr-width), 100% - 40px); margin: 0 auto; }
.table-strip .strip-0 { transform: rotate(-2deg); }
.table-strip .strip-2 { transform: rotate(2deg); }
@media (max-width: 760px) {
  .table-strip { grid-template-columns: 1fr; }
  .table-strip .strip-0, .table-strip .strip-2 { display: none; }
}
.footer-tables { padding: 40px 0 50px; }

/* ---- cards --------------------------------------------------------------------------------------- */

.pack-grid { display: grid; grid-template-columns: repeat(var(--columns, 3), 1fr); gap: 22px; }
@media (max-width: 960px) { .pack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pack-grid { grid-template-columns: 1fr; } }
.pack-card, .post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--spr-card); border: 1px solid var(--spr-line); border-radius: var(--spr-radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pack-card:hover, .post-card:hover { transform: translateY(-4px); box-shadow: var(--spr-shadow); }
.pack-card__table { border-radius: 0; box-shadow: none; }
.pack-card__body, .post-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; flex: 1; }
.pack-card__badge {
  align-self: flex-start; padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: 0.85rem;
  background: rgba(34, 197, 94, 0.18); color: #4ade80;
}
.pack-card__title, .post-card__title { margin: 4px 0 0; font-size: 1.25rem; }
.post-card__title a { color: var(--spr-text); }
.pack-card__meta, .post-card__meta { color: var(--spr-muted); font-size: 0.9rem; margin: 0; }
.pack-card__text { color: var(--spr-muted); font-size: 0.95rem; flex: 1; }
.pack-card .button { align-self: flex-start; margin-top: 6px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card__image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__image .spr-table3d { border-radius: 0; box-shadow: none; }

/* ---- app buttons --------------------------------------------------------------------------------- */

.app-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.app-button {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 12px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); text-decoration: none; text-align: left;
}
.app-button:hover { text-decoration: none; border-color: var(--spr-accent); }
.app-button svg { width: 26px; height: 26px; flex: none; }
.app-button span { display: flex; flex-direction: column; font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.app-button small { font-weight: 500; font-size: 0.68rem; opacity: 0.85; }
.app-button.is-soon { opacity: 0.6; cursor: default; }

/* ---- footer -------------------------------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--spr-line); background: #07100c; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding: 40px 0; }
.site-footer__brand { display: flex; flex-direction: column; gap: 18px; }
.site-footer__brand .custom-logo { height: 64px; width: auto; }
.footer-menu { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.footer-menu a { color: var(--spr-muted); display: inline-block; padding: 4px 0; }
.footer-menu a:hover { color: #fff; }
.footer-widget__title { font-size: 1rem; }
.site-footer__copyright {
  padding: 16px 20px; border-top: 1px solid var(--spr-line); text-align: center; font-size: 0.9rem; color: var(--spr-muted);
}
.site-footer__copyright a { color: var(--spr-text); font-weight: 600; }

/* ---- misc ---------------------------------------------------------------------------------------- */

.not-found { text-align: center; }
.not-found .spr-table3d { margin: 24px 0 30px; }
.nav-links { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; }
.pagination .nav-links { justify-content: center; }
.page-numbers { padding: 6px 12px; border-radius: 8px; background: var(--spr-card); color: var(--spr-text); }
.page-numbers.current { background: var(--spr-accent); }
.spr-coach-area { padding: 10px 0; }
.spr-coach-area .button + .button { margin-left: 8px; }
.wp-block-button__link { border-radius: 999px; }
.alignwide { width: min(1200px, 100vw - 40px); margin-inline: calc(50% - min(600px, 50vw - 20px)); }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }

/* ---- coach sign-up: the tiers ([spr_coach_signup], from the plugin) --------------------------- */

.spr-notice {
  padding: 12px 16px; border-radius: 12px; background: var(--spr-card); border: 1px solid var(--spr-line);
}
.spr-notice--error { border-color: rgba(239, 68, 68, 0.6); background: rgba(239, 68, 68, 0.12); }
.spr-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; margin: 24px 0; }
.spr-tier {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--spr-radius);
  background: var(--spr-card); border: 1px solid var(--spr-line);
}
.spr-tier.is-current { border-color: var(--spr-accent); box-shadow: 0 0 0 1px var(--spr-accent); }
.spr-tier__name { margin: 0; font-size: 1.35rem; }
.spr-tier__summary { margin: 0; color: var(--spr-muted); font-size: 0.95rem; }
.spr-tier__features { margin: 0; padding-left: 1.1em; font-size: 0.95rem; }
.spr-tier__buy { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.spr-tier__price { margin: 8px 0 0; font-size: 1.25rem; font-weight: 700; }
.spr-tier__note { margin: 0; color: var(--spr-muted); font-size: 0.85rem; }
.spr-coach-form { max-width: 520px; margin: 30px auto; padding: 24px; border-radius: var(--spr-radius); background: var(--spr-card); }
.spr-coach-form input[type='text'], .spr-coach-form input[type='email'], .spr-coach-form input[type='password'] { width: 100%; }
.spr-hp { position: absolute; left: -9999px; }

/* ---- coaches: qualifications (Coach Area) and the Coaches Directory (from the plugin) ---------- */

.spr-qualifications, .spr-directory-settings { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--spr-line); }
.spr-qualification-list { padding-left: 1.1em; }
.spr-qualification-list li { margin: 6px 0; }
.spr-qualification-list li > * { margin-left: 6px; }
.spr-q-status { font-size: 0.8rem; padding: 2px 8px; border-radius: 999px; background: var(--spr-card-2); color: var(--spr-muted); }
.spr-q-status--verified { background: rgba(34, 197, 94, 0.18); color: var(--spr-accent); }
.spr-q-status--declined { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.spr-qualification-form { max-width: 520px; padding: 18px; border-radius: var(--spr-radius); background: var(--spr-card); }
.spr-qualification-form select, .spr-qualification-form input[type='text'] { width: 100%; }
.spr-link-button { background: none; border: 0; padding: 0; color: var(--spr-accent); cursor: pointer; font: inherit; text-decoration: underline; }

.spr-directory__search { display: flex; gap: 10px; margin: 0 0 24px; }
.spr-directory__search input { flex: 1; min-width: 0; }
.spr-directory__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.spr-coach-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; text-align: center;
  border-radius: var(--spr-radius); background: var(--spr-card); border: 1px solid var(--spr-line); color: var(--spr-text); text-decoration: none;
  transition: border-color 0.2s, translate 0.2s;
}
.spr-coach-card:hover { border-color: var(--spr-accent); translate: 0 -2px; }
.spr-coach-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.spr-coach-photo--initials { display: grid; place-items: center; background: var(--spr-accent-deep); color: #fff; font-weight: 700; font-size: 1.8rem; }
.spr-coach-card__name { font-weight: 700; font-size: 1.1rem; }
.spr-coach-card__headline { color: var(--spr-muted); font-size: 0.9rem; }
.spr-coach-card__where { font-size: 0.85rem; }
.spr-coach-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; }
.spr-coach-badge { font-size: 0.75rem; padding: 3px 9px; border-radius: 999px; background: rgba(34, 197, 94, 0.15); color: var(--spr-accent); }
.spr-coach-profile__head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.spr-coach-profile__head .spr-coach-photo { width: 140px; height: 140px; }
.spr-coach-profile__head .spr-coach-badges { justify-content: flex-start; }
.spr-coach-profile__name { margin: 0; }
.spr-coach-profile__headline { margin: 4px 0; color: var(--spr-muted); }
.spr-coach-profile__where { margin: 0; }
.spr-coach-profile__note { color: var(--spr-muted); font-size: 0.85rem; }
.spr-coach-profile__contact { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.spr-contact-form { max-width: 560px; margin: 0 0 24px; padding: 20px; border-radius: var(--spr-radius); background: var(--spr-card); border: 1px solid var(--spr-line); }
.spr-contact-form h3 { margin-top: 0; }
.spr-contact-form input[type='text'], .spr-contact-form input[type='email'], .spr-contact-form input[type='tel'], .spr-contact-form textarea { width: 100%; }
.spr-claim { margin-top: 36px; padding: 18px 20px; border-radius: var(--spr-radius); border: 1px dashed var(--spr-line); background: var(--spr-bg-2); }
.spr-claim p { margin-top: 0; }
.spr-coach-form__match { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--spr-accent); border-radius: 12px; }
.spr-coach-form__match legend { padding: 0 6px; font-weight: 600; }
.spr-coach-form__match label { display: block; margin: 6px 0; }
.spr-coach-list { list-style: none; padding: 0; }
.spr-coach-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0; border-bottom: 1px solid var(--spr-line); }
.spr-my-coach { display: inline; margin: 0; }
.spr-students { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--spr-line); }
.spr-signup-extras { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--spr-line); border-radius: 12px; }
.spr-signup-extras legend { padding: 0 6px; font-weight: 600; }
.spr-signup-extras label { display: block; margin: 8px 0; }
.spr-pass-offer { padding: 22px; border-radius: var(--spr-radius); background: var(--spr-card); border: 1px solid var(--spr-accent); }
.spr-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }

/* ---- the Snooker Club directory (from the plugin) --------------------------------------------- */

.spr-clubs__search select { width: auto; }
.spr-clubs__filters { margin: -10px 0 18px; }
.spr-clubs__filters summary { cursor: pointer; color: var(--spr-muted); }
.spr-check { display: inline-flex; align-items: center; gap: 6px; margin: 6px 14px 0 0; }
.spr-clubs__count { color: var(--spr-muted); font-size: 0.9rem; }
.spr-club-card {
  display: flex; flex-direction: column; gap: 6px; padding: 0 0 18px; overflow: hidden; text-align: center;
  border-radius: var(--spr-radius); background: var(--spr-card); border: 1px solid var(--spr-line); color: var(--spr-text); text-decoration: none;
  transition: border-color 0.2s, translate 0.2s;
}
.spr-club-card > span { padding: 0 14px; }
.spr-club-card > .spr-coach-card__name { padding-top: 16px; }
.spr-club-card:hover { border-color: var(--spr-accent); translate: 0 -2px; }
.spr-club-card__img { width: 100%; height: 140px; object-fit: cover; }
.spr-club-card__img + .spr-coach-card__name { padding-top: 8px; }
.spr-club__img img { width: 100%; height: auto; border-radius: var(--spr-radius); }
.spr-club__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 4px 24px; margin: 18px 0; }
.spr-club__features { justify-content: flex-start; }
.spr-club-edit, .spr-suggest { margin-top: 32px; }
.spr-club-edit summary, .spr-suggest summary { cursor: pointer; font-weight: 600; }
.spr-club-fields .spr-field { margin: 0 0 12px; }
.spr-club-fields input[type='text'], .spr-club-fields input[type='url'], .spr-club-fields input[type='email'], .spr-club-fields textarea, .spr-club-fields select { width: 100%; }
.spr-club-fields fieldset { border: 1px solid var(--spr-line); border-radius: 12px; padding: 10px 14px; }
