/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../nodevenv/vine/18/lib/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[2].use[1]!../nodevenv/vine/18/lib/node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[13].oneOf[2].use[2]!../nodevenv/vine/18/lib/node_modules/next/font/google/target.css?{"path":"app/layout.tsx","import":"Inter","arguments":[{"subsets":["latin"],"variable":"--font-inter"}],"variableName":"inter"} ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__Inter_Fallback_f367f3';src: local("Arial");ascent-override: 90.49%;descent-override: 22.56%;line-gap-override: 0.00%;size-adjust: 107.06%
}.__className_f367f3 {font-family: '__Inter_f367f3', '__Inter_Fallback_f367f3';font-style: normal
}.__variable_f367f3 {--font-inter: '__Inter_f367f3', '__Inter_Fallback_f367f3'
}

/*!*********************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../nodevenv/vine/18/lib/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!../nodevenv/vine/18/lib/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************/
*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: Inter, var(--font-inter), ui-sans-serif, system-ui, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

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

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
  *, *::before, *::after {
  border-color: hsl(var(--border)); box-sizing:border-box;
}

  html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

  body {
    background-color: var(--bg-canvas);
    color: var(--text-body);
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1,h2,h3,h4,h5,h6 {
    color: var(--text-heading);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  p { color: var(--text-body); line-height: 1.65; }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }

  :focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }
/* ========================================================
     NAVIGATION
     ======================================================== */
.vine-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border-dark);
    box-shadow: var(--glass-shadow);
    transition: background var(--ease-std);
  }
.vine-header__inner {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: var(--sp-4);
    padding-block: var(--sp-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
.vine-header__logo-text {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
  }
/* Nav text links — dark text, never rely on glass bg for legibility */
.vine-nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-sm);
    transition: color var(--ease-fast), background var(--ease-fast);
  }
.vine-nav__link:hover {
    color: var(--text-heading);
    background: var(--brand-tint-50);   /* solid tint — no transparency */
  }
.vine-nav__link--danger {
    color: var(--text-brand);
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background var(--ease-fast), color var(--ease-fast);
  }
.vine-nav__link--danger:hover {
    background: var(--brand-tint-50);
    color: var(--brand-hover);
  }
/* ========================================================
     BUTTONS  — all variants have opaque, legible text+bg
     ======================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
      background var(--ease-std),
      color var(--ease-std),
      border-color var(--ease-std),
      box-shadow var(--ease-std),
      transform var(--ease-fast);
    text-decoration: none;
    letter-spacing: 0.01em;
  }
.btn:active  { transform: scale(0.975); }
.btn:disabled{ opacity: 0.45; pointer-events: none; }
/* ── Primary — solid red with WHITE text */
.btn-primary {
    background: var(--brand);
    color: #FFFFFF;
    border-color: var(--brand);
    box-shadow: 0 1px 3px rgba(209,0,0,0.30), 0 3px 10px rgba(209,0,0,0.18);
  }
.btn-primary:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    box-shadow: 0 2px 8px rgba(170,0,0,0.40), 0 5px 18px rgba(170,0,0,0.22);
    color: #FFFFFF;
    transform: translateY(-1px);
  }
.btn-primary:active { background: var(--brand-active); }
/* ── Secondary — white surface, dark charcoal text */
.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1.5px solid var(--btn-secondary-border);
    box-shadow: var(--glass-shadow);
  }
.btn-secondary:hover {
    background: var(--btn-secondary-bg-hover);
    border-color: rgba(0,0,0,0.26);
    color: var(--text-heading);
    box-shadow: var(--glass-shadow-lg);
    transform: translateY(-1px);
  }
/* ── Ghost — transparent bg with red border and dark-red text */
/* ── Danger / logout — solid tint bg, deep-red text */
.btn-danger {
    background: var(--btn-danger-bg);
    color: var(--btn-danger-text);
    border: 1.5px solid var(--btn-danger-border);
  }
.btn-danger:hover {
    background: var(--btn-danger-bg-hover);
    color: var(--btn-danger-text-hover);
    border-color: var(--brand-hover);
    box-shadow: 0 2px 8px rgba(209,0,0,0.30);
    transform: translateY(-1px);
  }
/* ── Neutral — light grey, dark body text */
/* ── Sizes */
.btn-sm { font-size: 0.8125rem; padding: 0.4375rem 0.875rem; border-radius: var(--radius-sm); }
.btn-lg { font-size: 1rem;      padding: 0.875rem 2rem;       border-radius: var(--radius-md); }
/* ========================================================
     GLASS CARDS — opaque enough for readable body text
     ======================================================== */
.glass-card {
    background: var(--glass-bg-strong);  /* 95% white — text always visible */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: box-shadow var(--ease-std), transform var(--ease-std);
  }
.glass-card:hover {
    box-shadow: var(--glass-shadow-lg);
    transform: translateY(-2px);
  }
/* Fully opaque white card for modals, auth panels */
.surface-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow-lg);
  }
/* Course thumbnail */
.course-card__thumb {
    height: 10rem;
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
  }
.course-card__thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.28) 0%, transparent 55%);
    pointer-events: none;
  }
.course-card__thumb img {
    width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover;
    transition: transform var(--ease-slow);
  }
.glass-card:hover .course-card__thumb img { transform: scale(1.04); }
/* ========================================================
     CATEGORY PILLS
     ======================================================== */
.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1.5px solid var(--border-medium);
    background: #FFFFFF;        /* solid white — no ambiguity */
    color: var(--text-secondary);
    cursor: pointer;
    transition:
      background var(--ease-std), color var(--ease-std),
      border-color var(--ease-std), box-shadow var(--ease-std),
      transform var(--ease-fast);
  }
.category-pill:hover {
    background: var(--brand-tint-50);
    border-color: var(--brand-tint-100);
    color: var(--text-brand);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(209,0,0,0.10);
  }
.category-pill--active {
    background: var(--brand);
    color: #FFFFFF;
    border-color: var(--brand);
    box-shadow: 0 2px 10px rgba(209,0,0,0.30);
  }
.category-pill--active:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
  }
/* ========================================================
     FORM INPUTS
     ======================================================== */
.vine-input {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: #FFFFFF;
    color: var(--text-body);
    font-size: 0.9375rem;
    line-height: 1.5;
    outline: none;
    transition: border-color var(--ease-std), box-shadow var(--ease-std);
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
  }
.vine-input::-moz-placeholder { color: var(--text-subtle); }
.vine-input::placeholder { color: var(--text-subtle); }
.vine-input:hover         { border-color: var(--border-strong); }
.vine-input:focus         {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-ring);
  }
.vine-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-body);
    margin-bottom: var(--sp-2);
  }
/* ========================================================
     HERO SECTION
     ======================================================== */
.vine-hero {
    position: relative;
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 60%, #E83030 100%);
    overflow: hidden;
  }
.vine-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle at 20% 80%, rgba(255,255,255,0.07) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
  }
.vine-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 56rem;
    margin-inline: auto;
    padding-inline: var(--sp-4);
    padding-block: 5rem;
    text-align: center;
  }
.vine-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: var(--sp-4);
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
  }
.vine-hero__sub {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.90);   /* boosted from 0.82 */
    margin-bottom: var(--sp-10);
    line-height: 1.6;
  }
/* Glass pill search — text always white on red bg */
.vine-search {
    display: flex;
    gap: var(--sp-2);
    max-width: 36rem;
    margin-inline: auto;
    background: rgba(0,0,0,0.22);        /* dark glass on red — text stays white */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.30);
    border-radius: var(--radius-full);
    padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-5);
    box-shadow: 0 4px 24px rgba(0,0,0,0.20);
  }
.vine-search__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #FFFFFF;
    font-size: 0.9375rem;
    padding: var(--sp-1) 0;
  }
.vine-search__input::-moz-placeholder { color: rgba(255,255,255,0.65); }
.vine-search__input::placeholder { color: rgba(255,255,255,0.65); }
.vine-search__btn {
    background: #FFFFFF;
    color: var(--brand);          /* dark red on white — 7:1 */
    border: none;
    border-radius: var(--radius-full);
    padding: 0.5625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    transition: background var(--ease-std), transform var(--ease-fast);
    flex-shrink: 0;
  }
.vine-search__btn:hover {
    background: var(--brand-tint-50);
    transform: scale(1.02);
  }
/* ========================================================
     PROGRESS BAR
     ======================================================== */
.vine-progress {
    width: 100%;
    height: 6px;
    background: #E5E7EB;   /* solid light grey — not transparent */
    border-radius: var(--radius-full);
    overflow: hidden;
  }
.vine-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand) 0%, #FF4444 100%);
    border-radius: var(--radius-full);
    transition: width 600ms ease;
  }
/* ========================================================
     BADGES / TAGS — solid tints, dark text
     ======================================================== */
.vine-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
.vine-badge--brand {
    background: var(--badge-brand-bg);
    color: var(--badge-brand-text);
    border: 1px solid var(--badge-brand-border);
  }
.vine-badge--success {
    background: var(--badge-success-bg);
    color: var(--badge-success-text);
    border: 1px solid var(--badge-success-border);
  }
.vine-badge--neutral {
    background: var(--badge-neutral-bg);
    color: var(--badge-neutral-text);
    border: 1px solid var(--badge-neutral-border);
  }
/* ========================================================
     ALERTS — all solid, high contrast
     ======================================================== */
.vine-alert {
    padding: var(--sp-4);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
  }
.vine-alert--error {
    background: var(--alert-error-bg);
    border: 1px solid var(--alert-error-border);
    color: var(--alert-error-text);
  }
.vine-alert--success {
    background: var(--alert-success-bg);
    border: 1px solid var(--alert-success-border);
    color: var(--alert-success-text);
  }
/* ========================================================
     MODAL OVERLAY
     ======================================================== */
.vine-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
  }
.vine-modal {
    width: 100%;
    max-width: 32rem;
    background: #FFFFFF;    /* fully opaque — modal text is always legible */
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 80px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.10);
    padding: var(--sp-8);
    max-height: 90vh;
    overflow-y: auto;
  }
/* ========================================================
     SPINNER
     ======================================================== */
.vine-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid #F0D0D0;   /* solid light red — never transparent */
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: vine-spin 0.7s linear infinite;
  }
@keyframes vine-spin { to { transform: rotate(360deg); } }
/* ========================================================
     TABS
     ======================================================== */
.vine-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1.5px solid #E5E7EB;
    margin-bottom: var(--sp-8);
  }
.vine-tab {
    padding: var(--sp-3) var(--sp-5);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -1.5px;
    cursor: pointer;
    transition: color var(--ease-std), border-color var(--ease-std);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
  }
.vine-tab:hover { color: var(--text-heading); }
.vine-tab--active {
    color: var(--text-brand);
    border-bottom-color: var(--brand);
    font-weight: 600;
  }
/* ========================================================
     INSTRUCTOR CTA PANEL
     ======================================================== */
.vine-instructor-cta {
    background: var(--inst-cta-bg);
    border: 1px solid var(--inst-cta-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
  }
/* ========================================================
     PAGE SECTIONS / LAYOUT
     ======================================================== */
.vine-section {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: var(--sp-4);
    padding-block: var(--sp-10);
  }
@media (min-width: 640px)  { .vine-section { padding-inline: var(--sp-6); } }
@media (min-width: 1024px) { .vine-section { padding-inline: var(--sp-8); } }
.vine-course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
@media (min-width: 640px)  { .vine-course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vine-course-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .vine-course-grid { grid-template-columns: repeat(4, 1fr); } }
/* ========================================================
     AUTH PAGES
     ======================================================== */
.vine-auth-page {
    min-height: 100vh;
    background: var(--bg-canvas);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
    position: relative;
    overflow: hidden;
  }
/* Subtle decorative blobs — blurred, behind the opaque card */
.vine-auth-page::before,
  .vine-auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
  }
.vine-auth-page::before {
    width: 28rem; height: 28rem;
    background: radial-gradient(circle, rgba(209,0,0,0.10) 0%, transparent 70%);
    top: -8rem; right: -6rem;
  }
.vine-auth-page::after {
    width: 20rem; height: 20rem;
    background: radial-gradient(circle, rgba(209,0,0,0.06) 0%, transparent 70%);
    bottom: -4rem; left: -4rem;
  }
/* Auth card — fully opaque white so all text is always sharp */
.vine-auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 26rem;
    background: #FFFFFF;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow-lg);
    padding: var(--sp-8);
  }
/* ========================================================
     CATEGORY STRIP
     ======================================================== */
.vine-categories {
    display: flex;
    gap: var(--sp-2);
    overflow-x: auto;
    padding-bottom: var(--sp-2);
    scrollbar-width: none;
  }
.vine-categories::-webkit-scrollbar { display: none; }
/* ========================================================
     DIVIDER
     ======================================================== */
/* ========================================================
     UTILITY: line-clamp
     ======================================================== */
.clamp-2 { overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
/* ========================================================
     SCROLLBAR (webkit)
     ======================================================== */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }
.static {
  position: static;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: sticky;
}
.top-1 {
  top: 0.25rem;
}
.top-24 {
  top: 6rem;
}
.z-10 {
  z-index: 10;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mb-0\.5 {
  margin-bottom: 0.125rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-10 {
  margin-bottom: 2.5rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-7 {
  margin-bottom: 1.75rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.mt-0\.5 {
  margin-top: 0.125rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-12 {
  margin-top: 3rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-auto {
  margin-top: auto;
}
.block {
  display: block;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.h-10 {
  height: 2.5rem;
}
.h-11 {
  height: 2.75rem;
}
.h-12 {
  height: 3rem;
}
.h-14 {
  height: 3.5rem;
}
.h-16 {
  height: 4rem;
}
.h-4 {
  height: 1rem;
}
.h-6 {
  height: 1.5rem;
}
.h-7 {
  height: 1.75rem;
}
.h-8 {
  height: 2rem;
}
.h-full {
  height: 100%;
}
.min-h-screen {
  min-height: 100vh;
}
.w-10 {
  width: 2.5rem;
}
.w-11 {
  width: 2.75rem;
}
.w-12 {
  width: 3rem;
}
.w-14 {
  width: 3.5rem;
}
.w-16 {
  width: 4rem;
}
.w-4 {
  width: 1rem;
}
.w-6 {
  width: 1.5rem;
}
.w-7 {
  width: 1.75rem;
}
.w-8 {
  width: 2rem;
}
.w-auto {
  width: auto;
}
.w-full {
  width: 100%;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.shrink-0 {
  flex-shrink: 0;
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@keyframes spin {

  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.cursor-pointer {
  cursor: pointer;
}
.select-none {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.resize {
  resize: both;
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-1\.5 {
  gap: 0.375rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-5 {
  gap: 1.25rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-y-auto {
  overflow-y: auto;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 16px;
}
.rounded-md {
  border-radius: 10px;
}
.border {
  border-width: 1px;
}
.border-b-2 {
  border-bottom-width: 2px;
}
.border-\[var\(--brand\)\] {
  border-color: var(--brand);
}
.border-\[var\(--glass-border\)\] {
  border-color: var(--glass-border);
}
.border-input {
  border-color: hsl(var(--input));
}
.border-red-700 {
  --tw-border-opacity: 1;
  border-color: rgb(185 28 28 / var(--tw-border-opacity, 1));
}
.bg-\[var\(--brand\)\] {
  background-color: var(--brand);
}
.bg-\[var\(--glass-bg\)\] {
  background-color: var(--glass-bg);
}
.bg-background {
  background-color: hsl(var(--background));
}
.bg-destructive {
  background-color: hsl(var(--destructive));
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.pt-1 {
  padding-top: 0.25rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-3 {
  padding-top: 0.75rem;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.font-sans {
  font-family: Inter, var(--font-inter), ui-sans-serif, system-ui, sans-serif;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.font-normal {
  font-weight: 400;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.capitalize {
  text-transform: capitalize;
}
.leading-relaxed {
  line-height: 1.625;
}
.leading-snug {
  line-height: 1.375;
}
.tracking-wide {
  letter-spacing: 0.025em;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.text-\[var\(--brand\)\] {
  color: var(--brand);
}
.text-\[var\(--text-heading\)\] {
  color: var(--text-heading);
}
.text-destructive-foreground {
  color: hsl(var(--destructive-foreground));
}
.text-primary {
  color: hsl(var(--primary));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.underline-offset-4 {
  text-underline-offset: 4px;
}
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.opacity-0 {
  opacity: 0;
}
.opacity-40 {
  opacity: 0.4;
}
.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-\[0_1px_3px_rgba\(209\2c 0\2c 0\2c 0\.25\)\2c 0_4px_12px_rgba\(209\2c 0\2c 0\2c 0\.15\)\] {
  --tw-shadow: 0 1px 3px rgba(209,0,0,0.25),0 4px 12px rgba(209,0,0,0.15);
  --tw-shadow-colored: 0 1px 3px var(--tw-shadow-color), 0 4px 12px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-\[var\(--glass-shadow\)\] {
  --tw-shadow-color: var(--glass-shadow);
  --tw-shadow: var(--tw-shadow-colored);
}
.outline {
  outline-style: solid;
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.backdrop-blur-\[16px\] {
  --tw-backdrop-blur: blur(16px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-200 {
  transition-duration: 200ms;
}
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

/* ============================================================
   VINE CULINARY — Design System v2
   Theme: Red · Paper White · Glassmorphism
   All text/background combinations meet WCAG AA contrast
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
  /* ── Brand reds ─────────────────────────────────────────── */
  --brand:              #D10000;   /* primary CTA red           */
  --brand-hover:        #AA0000;   /* darker on hover           */
  --brand-deep:         #8C0000;   /* hero gradient deep        */
  --brand-active:       #880000;   /* pressed state             */

  /* Tinted fills — enough opacity to show on white but text still pops */
  --brand-tint-50:      #FFF0F0;   /* lightest red tint — solid  */
  --brand-tint-100:     #FFD6D6;   /* light red tint             */
  --brand-tint-200:     #FFAAAA;   /* mid-light tint             */

  /* Glow for focus rings / borders only — NOT for text backgrounds */
  --brand-ring:         rgba(209, 0, 0, 0.22);

  /* ── Canvas / surfaces ──────────────────────────────────── */
  --bg-canvas:          #FAFAFA;
  --bg-surface:         #FFFFFF;
  --bg-raised:          #F5F5F5;   /* inset/well surface        */

  /* ── High-contrast text ─────────────────────────────────── */
  --text-heading:       #1A1A1A;   /* 16.75:1 on white          */
  --text-body:          #2D2D2D;   /* 14.7:1 on white           */
  --text-secondary:     #4A4A4A;   /* 9.7:1 on white            */
  --text-muted:         #5C5C5C;   /* 7.6:1 on white — AA large */
  --text-subtle:        #767676;   /* 4.54:1 — AA minimum       */
  --text-on-brand:      #FFFFFF;   /* on #D10000 bg             */
  --text-on-dark:       #FFFFFF;
  --text-brand:         #A80000;   /* red text on white — 7:1   */

  /* ── Glass surfaces (non-transparent alternatives for white bg) */
  /* We keep blur for structural depth but add a solid floor */
  --glass-bg:           rgba(255, 255, 255, 0.82);   /* renders ≥ #D2D2D2 on #FAFAFA */
  --glass-bg-strong:    rgba(255, 255, 255, 0.95);
  --glass-border:       rgba(200, 200, 200, 0.80);   /* visible crisp border */
  --glass-border-dark:  rgba(180, 180, 180, 0.90);
  --glass-shadow:       0 2px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
  --glass-shadow-lg:    0 6px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --glass-blur:         blur(16px);

  /* ── Solid surface alternatives (no blur) for reliable legibility */
  --surface-glass-fallback: #FFFFFF;   /* solid white behind glass  */

  /* ── Borders ────────────────────────────────────────────── */
  --border-soft:        rgba(0,0,0,0.08);
  --border-medium:      rgba(0,0,0,0.14);
  --border-strong:      rgba(0,0,0,0.22);

  /* ── Button colour tokens — every variant has opaque text-safe bg */
  /* Secondary (white-surface glass) */
  --btn-secondary-bg:         #FFFFFF;
  --btn-secondary-bg-hover:   #F5F5F5;
  --btn-secondary-text:       #1A1A1A;
  --btn-secondary-border:     rgba(0,0,0,0.18);

  /* Ghost / outline */
  --btn-ghost-bg:             transparent;
  --btn-ghost-bg-hover:       #FFF0F0;
  --btn-ghost-text:           #A80000;
  --btn-ghost-border:         #D10000;

  /* Danger / logout */
  --btn-danger-bg:            #FFF0F0;
  --btn-danger-bg-hover:      #D10000;
  --btn-danger-text:          #A80000;
  --btn-danger-text-hover:    #FFFFFF;
  --btn-danger-border:        #FFAAAA;

  /* Neutral / muted */
  --btn-neutral-bg:           #F0F0F0;
  --btn-neutral-bg-hover:     #E5E5E5;
  --btn-neutral-text:         #2D2D2D;
  --btn-neutral-border:       rgba(0,0,0,0.12);

  /* ── Status badge fills — all solid tints with dark text ── */
  --badge-brand-bg:     #FFF0F0;
  --badge-brand-text:   #A80000;
  --badge-brand-border: #FFAAAA;

  --badge-success-bg:   #ECFDF5;
  --badge-success-text: #065F46;
  --badge-success-border:#6EE7B7;

  --badge-warning-bg:   #FFFBEB;
  --badge-warning-text: #78350F;
  --badge-warning-border:#FCD34D;

  --badge-neutral-bg:   #F3F4F6;
  --badge-neutral-text: #374151;
  --badge-neutral-border:#D1D5DB;

  --badge-info-bg:      #EFF6FF;
  --badge-info-text:    #1E40AF;
  --badge-info-border:  #BFDBFE;

  /* ── Alert fills — all solid ─────────────────────────────── */
  --alert-error-bg:     #FFF0F0;
  --alert-error-text:   #7F1D1D;
  --alert-error-border: #FECACA;

  --alert-success-bg:   #ECFDF5;
  --alert-success-text: #064E3B;
  --alert-success-border:#6EE7B7;

  --alert-info-bg:      #EFF6FF;
  --alert-info-text:    #1E3A5F;
  --alert-info-border:  #BFDBFE;

  /* ── Instructor CTA panel ───────────────────────────────── */
  --inst-cta-bg:        #FFF5F5;
  --inst-cta-border:    #FFAAAA;

  /* ── Spacing (4px scale) ────────────────────────────────── */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px;
  --sp-6:24px; --sp-8:32px; --sp-10:40px; --sp-12:48px; --sp-16:64px;

  /* ── Radius ─────────────────────────────────────────────── */
  --radius-sm:  6px; --radius-md:10px; --radius-lg:16px;
  --radius-xl:  24px; --radius-full:9999px;

  /* ── Transitions ────────────────────────────────────────── */
  --ease-fast:150ms ease; --ease-std:250ms ease; --ease-slow:400ms ease;

  /* ── shadcn / Tailwind bridge ───────────────────────────── */
  --background:       0 0% 98%;
  --foreground:       0 0% 11%;
  --card:             0 0% 100%;
  --card-foreground:  0 0% 11%;
  --popover:          0 0% 100%;
  --popover-foreground:0 0% 11%;
  --primary:          0 100% 41%;
  --primary-foreground:0 0% 100%;
  --secondary:        0 0% 95%;
  --secondary-foreground:0 0% 11%;
  --muted:            0 0% 95%;
  --muted-foreground: 0 0% 36%;
  --accent:           0 40% 95%;
  --accent-foreground:0 80% 33%;
  --destructive:      0 84% 60%;
  --destructive-foreground:0 0% 100%;
  --border:           0 0% 89%;
  --input:            0 0% 89%;
  --ring:             0 100% 41%;
  --radius:           0.625rem;
}

/* ── Base ───────────────────────────────────────────────────── */

/* ── Components ─────────────────────────────────────────────── */
.hover\:-translate-y-px:hover {
  --tw-translate-y: -1px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.hover\:bg-\[var\(--brand-hover\)\]:hover {
  background-color: var(--brand-hover);
}
.hover\:bg-\[var\(--brand-light\)\]:hover {
  background-color: var(--brand-light);
}
.hover\:bg-\[var\(--glass-bg-strong\)\]:hover {
  background-color: var(--glass-bg-strong);
}
.hover\:bg-accent:hover {
  background-color: hsl(var(--accent));
}
.hover\:bg-destructive\/90:hover {
  background-color: hsl(var(--destructive) / 0.9);
}
.hover\:text-\[\#1A1A1A\]:hover {
  --tw-text-opacity: 1;
  color: rgb(26 26 26 / var(--tw-text-opacity, 1));
}
.hover\:text-accent-foreground:hover {
  color: hsl(var(--accent-foreground));
}
.hover\:underline:hover {
  text-decoration-line: underline;
}
.hover\:shadow-\[0_2px_6px_rgba\(209\2c 0\2c 0\2c 0\.35\)\]:hover {
  --tw-shadow: 0 2px 6px rgba(209,0,0,0.35);
  --tw-shadow-colored: 0 2px 6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.focus-visible\:outline-none:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus-visible\:ring-2:focus-visible {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus-visible\:ring-ring:focus-visible {
  --tw-ring-color: hsl(var(--ring));
}
.focus-visible\:ring-offset-2:focus-visible {
  --tw-ring-offset-width: 2px;
}
.active\:scale-\[0\.975\]:active {
  --tw-scale-x: 0.975;
  --tw-scale-y: 0.975;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.disabled\:pointer-events-none:disabled {
  pointer-events: none;
}
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}
@media (min-width: 640px) {

  .sm\:block {
    display: block;
  }

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {

  .lg\:col-span-1 {
    grid-column: span 1 / span 1;
  }

  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .lg\:flex {
    display: flex;
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

