
/* ================================
   FONTS
=================================== */

/* sora-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/sora-v12-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/sora-v12-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* sora-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/sora-v12-latin-500.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/sora-v12-latin-500.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* sora-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/sora-v12-latin-600.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/sora-v12-latin-600.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* sora-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/sora-v12-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/sora-v12-latin-700.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* noto-sans-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/noto-sans-v36-latin-300.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/noto-sans-v36-latin-300.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* noto-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/noto-sans-v36-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/noto-sans-v36-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* noto-sans-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/noto-sans-v36-latin-500.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/noto-sans-v36-latin-500.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* noto-sans-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/noto-sans-v36-latin-600.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/noto-sans-v36-latin-600.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* noto-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/noto-sans-v36-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/noto-sans-v36-latin-700.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* noto-sans-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/noto-sans-v36-latin-800.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/noto-sans-v36-latin-800.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}



/* ================================
   ROOT VARIABLES
=================================== */
:root {
  --bg: #224028;
  --card: #fff;
  --text: #333;
  --muted: #888;
  --accent:#91CB3E;
  --radius: 26px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .15);
  --gap: 14px;
}



/* ================================
   GLOBAL RESET & BASE
=================================== */
* {
  box-sizing: border-box;
}

html {font-size: 16px;}

html,
body {
  min-height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Noto Sans';
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 30px 24px 30px;
    flex-direction: column;
}

/* ================================
   CARD LAYOUT
=================================== */
.card {
    width: 100%;
    max-width: 1180px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 2.3rem 2.5rem;
}

/* ================================
   HEADINGS & TEXT
=================================== */
h1 {
    margin: 0 0 8px;
    font-size: 30px;
}


h1, .elementor h1.elementor-heading-title,
h2, .elementor h2.elementor-heading-title,
h3, .elementor h3.elementor-heading-title,
h4, .elementor h4.elementor-heading-title,
h5, .elementor h5.elementor-heading-title,
h6, .elementor h6.elementor-heading-title {
  font-family: 'Sora';
  overflow-wrap: break-word;
  word-break: break-word;  
  font-style: normal;  
  text-decoration: none;
  letter-spacing: normal;
  padding: 0;
  margin: 0;
  color: #333;
}


.sub {
  color: var(--muted);
  margin-bottom: 18px;
}

/* ================================
   STATUS MESSAGES
=================================== */
.msg {
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-weight: 600;
}

.ok {
    background: hsl(84.68deg 57.55% 51.96% / 13%);
    color: #91CB3E;
    border: 1px solid hsl(84.68deg 57.55% 51.96% / 17%);
    font-weight: 500;
    padding: 12px;
}

.err {
    background: rgb(255 87 34 / 10%);
    border: 1px solid rgb(255 87 34 / 20%);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* ================================
   TOOLBAR
=================================== */
.toolbar {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ================================
   BUTTONS
=================================== */
.btn {
    appearance: none;
    border: 0;
    border-radius: 100px;
    padding: 9px 14px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent);
}

.btn:hover {
  text-decoration: underline;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}

.btn-primary:hover {
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

/* ================================
   GRID LAYOUTS
=================================== */
.gridHead, .row {
    display: grid;
    gap: var(--gap);
    grid-template-columns: 70px 1.2fr 92px 1.2fr 92px 92px 92px;
    align-items: center;
}

body.settings .gridHead, body.settings .row {
    display: grid;
    gap: var(--gap);
    grid-template-columns: 70px 1.2fr 146px 1.2fr 92px 92px 92px;
    align-items: center;
}

.gridHead {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 0 6px 6px;
}

.row {
  background: #f7f9f8;
  border: 1px solid #e6efec;
  border-radius: 12px;
  padding: 12px;
}

.rows.rows-hd .row {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.row + .row {
  margin-top: 10px;
}

/* ================================
   FIELDS & CELLS
=================================== */
.cell h4 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 8px;
}

/* ================================
   SWITCH TOGGLE
=================================== */
.switch {
  --h: 28px;
  position: relative;
  width: 56px;
  height: var(--h);
  display: inline-block;
  filter: grayscale(0.2);
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.switch .slider {
  position: absolute;
  inset: 0;
  background: #e6efec;
  border-radius: var(--h);
  box-shadow: inset 0 0 0 1px #d6e6e1;
  transition: background .2s;
}

.switch .slider::before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  top: 2px;
  left: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  transition: transform .2s;
}

.switch.on .slider {
  background: var(--accent);
}

.switch.on .slider::before {
  transform: translateX(28px);
}

/* ================================
   INPUT FIELDS
=================================== */
input[type="number" i] {
  padding: 10px 5px;
  border-radius: 10px;
  border: 1px solid #dbe7e3;
  width: 100%;
  font-size: 15px;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #dbe7e3;
    border-radius: 10px;
  font-size: 15px;
}

input#password {
    padding: 10px 5px;
    border-radius: 10px;
    border: 1px solid #dbe7e3;
    width: 100%;
    font-size: 16px;
}

/* ================================
   ROW ACTIONS
=================================== */
.remove-row {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: none;
    background: transparent;
    padding: 0;
    font-weight: 500;
    cursor: pointer;
    font-size: 12px;
    color: red;
}

.remove-row:hover {
  background:transparent;
}

/* ================================
   FOOTER ACTIONS
=================================== */
.footer-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ================================
   BADGES
=================================== */
.badge {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 5px;
    background: var(--accent);
    border: 1px solid var(--accent);
    margin: 0 6px 6px 0;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

/* ================================
   CHECKBOX
=================================== */

.switch input:checked ~ .slider {
  background: var(--accent) !important;
}

.switch input:checked ~ .slider::before {
  transform: translateX(28px);
}


.switch input:focus-visible ~ .slider {
  box-shadow: inset 0 0 0 2px #bdf0dd, 0 0 0 3px rgba(13, 148, 136, .35);
}



/* ================================
   MISC
=================================== */
.readonly {
  opacity: .85;
  pointer-events: none;
}

/* ================================
   SELECT2 CUSTOM STYLES
=================================== */
.select2-container {
  width: 100% !important;
  max-width: 100%;
}

.select2-container--default .select2-selection--multiple {
  min-height: 44px;
  border: 1px solid #dbe7e3;
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 4px 8px;
  overflow: hidden;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
}

.select2-dropdown {
  z-index: 9999 !important;
}

.pad-b .select2-container .select2-selection {
  padding-bottom: 35px;
}



/* ================================
   RULES
=================================== */


h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #333;
}
strong {
    font-weight: 600;
}

.rules {
  margin-top: 40px;
}

.rules ul {
    margin: 0px;
    padding: 0 20px;
}

.rules ul li {
    padding-bottom: 2px;
    font-size: 14px;
    color: var(--muted);
}

/* ================================
   HEADER
=================================== */

.hd-wrap {
    padding: 0 20px 20px;
}

.hd-wrap img {
    width:190px;
}

footer.footer-note {
    color: #fff;
    opacity: 0.2;
    padding-top: 20px;
    font-size: 15px;
}


.alert {
    background: rgb(255 87 34 / 10%);
    border: 1px solid rgb(255 87 34 / 20%);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
}


.card-keywords {
  width: 100%;
  max-width: 900px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: clamp(16px, 3vw, 28px);
}

/* Page-specific elements */
.keywords-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.keywords-header-left h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2vw, 28px);
}
.keywords-header-left .sub {
  color: #6b8f86;
  margin-bottom: 18px;
}

.keyword-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.keyword-label {
  flex: 0 0 180px;
  font-weight: 600;
}
.keyword-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #dbe7e3;
  border-radius: 10px;
  font: inherit;
}

.keywords-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

form.keywords-form {
    margin-top: 25px;
}

