/* ==============================
   Tasted Beer
   ============================== */

/* Tasted beer button on beer cards - below the save/heart button */
.tasted-beer-btn {
  position: absolute;
  right: 30px;
  bottom: 50px;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: block;
  color: transparent;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  text-decoration: none;
  border: none;
  background: none;
}

@media (min-width: 1000px) {
  .tasted-beer-btn {
    bottom: auto;
    top: 40px;
    right: 12px;
  }
}

.tasted-beer-btn i {
  font-size: 17px;
  color: #dedede;
  transition: all 0.4s ease-in-out;
}

.tasted-beer-btn:hover i {
  color: #ffd700;
}

.tasted-beer-btn.active i {
  color: #ffd700;
}

/* Toast notification */
.tasted-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #000;
  color: #ffff00;
  padding: 12px 24px;
  border-radius: 10px;
  border-left: 4px solid #ffd700;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  z-index: 99999;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.tasted-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tasted-toast i {
  color: #ffd700;
  margin-right: 6px;
}

/* Beer detail page - override positioning */
.beer-detail-actions .tasted-beer-btn {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  width: auto;
  height: auto;
  overflow: visible;
  color: #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  font-size: 14px;
}

.beer-detail-actions .tasted-beer-btn i {
  color: #dedede;
  font-size: 14px;
}

.beer-detail-actions .tasted-beer-btn:hover i,
.beer-detail-actions .tasted-beer-btn.active i {
  color: #ffd700;
}

.beer-detail-actions .tasted-beer-btn.active {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.15);
}

.beer-detail-actions .save-beer-btn {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  width: auto;
  height: auto;
  overflow: visible;
  border-radius: 8px;
}

.beer-detail-actions .save-beer-btn.active {
  border-color: #dc0c23;
  background: rgba(220, 12, 35, 0.15);
}

/* ==============================
   Public Profile Page
   ============================== */

.public-profile-page {
    max-width: 900px;
    width: 100%;
    margin: 40px auto 0;
    padding: 30px 30px 60px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid #fefefe;
}

/* Hero Section */
.pp-hero {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 20px;
    padding: 40px 32px;
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.pp-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 215, 0, 0.06);
    border-radius: 50%;
}

.pp-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    overflow: hidden;
}

.pp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.pp-user-info {
    color: #fff;
}

.pp-display-name {
    font-family: "Montserrat", sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}

.pp-expert-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}

.pp-member-since {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.pp-member-since i {
    margin-right: 6px;
}

/* Stats Bar */
.pp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.pp-stat-box {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.pp-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #ffd700;
    font-family: "Montserrat", sans-serif;
    line-height: 1.2;
}

.pp-stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Section Titles */
.pp-section-title {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid #1e3a8a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pp-section-title i {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Reviews Section */
.pp-reviews {
    margin-bottom: 40px;
}

.pp-review-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: transform 0.2s;
}

.pp-review-card:hover {
    transform: translateY(-2px);
}

.pp-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pp-review-beer {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.pp-review-beer-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    background: #2a2a2a;
}

.pp-review-beer-name {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.pp-review-beer-name:hover {
    color: #3b82f6;
}

.pp-review-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.pp-review-rating {
    display: flex;
    gap: 3px;
}

.pp-review-rating i {
    font-size: 16px;
}

.pp-review-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 10px;
}

.pp-review-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.pp-review-footer i {
    color: #3b82f6;
}

/* Amulets Section */
.pp-amulets {
    margin-bottom: 40px;
}

.pp-amulets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.pp-amulet-card {
    background: #0a0a0a;
    border: 1px solid #ffd700;
    border-left: 4px solid #ffd700;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.1);
    transition: transform 0.3s ease;
}

.pp-amulet-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(255, 215, 0, 0.2);
}

.pp-amulet-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    font-size: 28px;
    color: #ffd700;
    border: 2px solid #333;
    overflow: hidden;
}

.pp-amulet-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.pp-amulet-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffd700;
    font-family: "Montserrat", sans-serif;
    margin-bottom: 4px;
}

.pp-amulet-points {
    display: inline-block;
    background: linear-gradient(135deg, gold, #ffed4e);
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.pp-amulet-date {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    color: #4ade80;
}

/* Empty States */
.pp-empty {
    color: #888;
    font-size: 14px;
    padding: 20px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

/* 404 */
.pp-not-found {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.pp-not-found i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.pp-not-found h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.pp-not-found p {
    color: #888;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .pp-hero {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .pp-display-name {
        font-size: 22px;
    }

    .pp-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .pp-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pp-amulets-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 480px) {
    .pp-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pp-stat-value {
        font-size: 22px;
    }

    .pp-avatar {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }
}

/* ==============================
   Signup - Username Field
   ============================== */

.username-feedback {
    font-size: 12px;
    margin-top: 6px;
    min-height: 18px;
    font-weight: 600;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.username-feedback.available {
    color: #22c55e;
}

.username-feedback.taken,
.username-feedback.error {
    color: #ef4444;
}

.username-feedback.checking {
    color: #f59e0b;
}

.username-feedback .uf-icon i {
    position: static;
    font-size: 12px;
    color: inherit;
    transform: none;
    pointer-events: none;
}

/* ==============================
   Beer Database - Filter Overrides
   ============================== */

.bf-section-header h4 {
    font-size: 16px !important;
}

.bf-checkbox-item label {
    font-size: 15px !important;
}

.bf-checkbox-item input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
}

.bf-search-box input {
    font-size: 15px !important;
    padding: 12px 14px 12px 40px !important;
}

.bf-filter-search input {
    font-size: 14px !important;
    padding: 9px 10px 9px 32px !important;
}

.bf-show-toggle {
    font-size: 14px !important;
}

.bf-clear-all {
    font-size: 14px !important;
}

.bf-pill {
    font-size: 13px !important;
    padding: 5px 12px !important;
}

/* ==============================
   Legal Pages
   ============================== */

.legal-page-container {
  max-width: 860px;
  margin: 40px auto 60px;
  padding: 0 20px;
}

.legal-page-inner {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.legal-page-inner h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #1a1a2e;
  margin: 0 0 8px;
}

.legal-last-updated {
  font-size: 13px;
  color: #888;
  margin-bottom: 28px;
  font-style: italic;
}

.legal-page-inner h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e5e7eb;
}

.legal-page-inner h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin: 20px 0 8px;
}

.legal-page-inner p {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 12px;
}

.legal-page-inner ul {
  margin: 8px 0 16px 20px;
  padding: 0;
}

.legal-page-inner ul li {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 6px;
  list-style: disc;
}

.legal-page-inner a {
  color: #1e3a8a;
  text-decoration: underline;
}

.legal-page-inner a:hover {
  color: #3b82f6;
}

/* Footer Legal Links */
.footer-legal-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: #ffd700;
}

.footer-legal-links span {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

@media (max-width: 768px) {
  .legal-page-inner {
    padding: 30px 20px;
  }

  .legal-page-inner h1 {
    font-size: 26px;
  }

  .legal-page-inner h2 {
    font-size: 18px;
  }
}

/* ==============================
   Email Verification Banner
   ============================== */

.ds-email-verify-banner {
  background-color: #dc2626;
  color: #fff;
  font-size: 14px;
  z-index: 999;
  position: relative;
}

.ds-email-verify-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ds-email-verify-banner__icon {
  color: #fbbf24;
  font-size: 16px;
  flex-shrink: 0;
}

.ds-email-verify-banner__text {
  text-align: center;
}

.ds-email-verify-banner__link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.ds-email-verify-banner__link:hover {
  color: #fbbf24;
}

/* ==============================
   Settings Page
   ============================== */

.settings-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 30px;
  margin-top: 20px;
}

.settings-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.settings-verification-status {
  margin-bottom: 20px;
}

.settings-verification-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  gap: 15px;
}

.settings-label {
  font-weight: 600;
  color: #374151;
  min-width: 80px;
}

.settings-value {
  color: #6b7280;
}

.settings-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.settings-badge--verified {
  background: #dcfce7;
  color: #166534;
}

.settings-badge--unverified {
  background: #fee2e2;
  color: #991b1b;
}

.settings-alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.settings-alert--success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.settings-alert--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.settings-unverified-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 20px;
}

.settings-unverified-notice p {
  color: #92400e;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.5;
}

.settings-resend-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #008be6;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.settings-resend-btn:hover {
  background: #0073c4;
}

/* ==============================
   Forgot / Reset Password
   ============================== */

.ds-forgot-alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ds-forgot-alert i {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ds-forgot-alert p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.ds-forgot-alert--success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.ds-forgot-alert--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.ds-forgot-instructions {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.ds-forgot-back-link {
  color: #008be6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ds-forgot-back-link:hover {
  color: #0073c4;
  text-decoration: underline;
}

/* ==============================
   Login Modal (Fancybox)
   ============================== */

.fancybox-slide--html #loginModal {
  padding: 0;
  max-width: 420px;
}

.ds-login-modal {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  font-family: "Montserrat", "Inter", sans-serif;
}

.ds-login-modal__header {
  padding: 30px 32px 0;
  text-align: center;
}

.ds-login-modal__header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.ds-login-modal__body {
  padding: 24px 32px 28px;
}

.ds-login-modal__field {
  margin-bottom: 18px;
}

.ds-login-modal__field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #374151;
  font-size: 13px;
}

.ds-login-modal__input-wrap {
  position: relative;
}

.ds-login-modal__input-wrap input {
  width: 100%;
  padding: 12px 42px 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #333;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.ds-login-modal__input-wrap input:focus {
  outline: none;
  border-color: #3f66fb;
  box-shadow: 0 0 0 3px rgba(63, 102, 251, 0.1);
  background: #fff;
}

.ds-login-modal__input-wrap i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
}

.ds-login-modal__input-wrap input:focus ~ i {
  color: #3f66fb;
}

.ds-login-modal__options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 13px;
}

.ds-login-modal__remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  cursor: pointer;
}

.ds-login-modal__remember input[type="checkbox"] {
  accent-color: #3f66fb;
}

.ds-login-modal__forgot {
  color: #3f66fb;
  text-decoration: none;
  font-weight: 500;
}

.ds-login-modal__forgot:hover {
  text-decoration: underline;
}

.ds-login-modal__submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(to right, #3f66fb, #2a52e0);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ds-login-modal__submit:hover {
  opacity: 0.9;
}

.ds-login-modal__divider {
  text-align: center;
  margin: 22px 0;
  position: relative;
}

.ds-login-modal__divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #e2e8f0;
}

.ds-login-modal__divider span {
  position: relative;
  background: #fff;
  padding: 0 14px;
  color: #94a3b8;
  font-size: 13px;
}

.ds-login-modal__social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ds-login-modal__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background 0.2s;
}

.ds-login-modal__social-btn:hover {
  background: #f8fafc;
}

.ds-login-modal__social-btn i {
  font-size: 16px;
  color: #4285f4;
}

.ds-login-modal__footer {
  text-align: center;
  padding: 16px 32px;
  font-size: 13px;
  color: #64748b;
  background: #f8f9ff;
  border-top: 1px solid #f1f5f9;
}

.ds-login-modal__footer a {
  color: #3f66fb;
  text-decoration: none;
  font-weight: 600;
}

.ds-login-modal__footer a:hover {
  text-decoration: underline;
}

/* ==============================
   Top Rated Page (no filters)
   ============================== */

.top-rated-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px 20px 60px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid #fefefe;
}

.top-rated-header {
  text-align: center;
  padding: 20px 20px;
  margin-bottom: 30px;
}

.top-rated-header h1 {
  font-size: 44px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.top-beers-grid--page {
  justify-content: center;
}

.top-beers-grid--page .top-beer-card {
  width: 190px;
  background: #fff;
  border-color: #e5e7eb;
}

.top-beers-grid--page .top-beer-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.top-beers-grid--page .top-beer-name {
  color: #1a1a1a;
}

.top-beers-grid--page .top-beer-img-frame {
  background: #f3f4f6;
}

/* ==============================
   Homepage - Top Beers Section
   ============================== */

.top-beers-section {
  background: #111;
  padding: 60px 20px;
}

.top-beers-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.top-beers-inner > h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  text-align: center;
  margin: 0 0 36px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.top-beers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.top-beer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 18px 12px 14px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  overflow: hidden;
  width: 170px;
  flex-shrink: 0;
}

.top-beer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-color: #3b82f6;
}

.top-beer-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #1a1a1a;
  background: #ffd700;
  border-radius: 6px;
  padding: 2px 7px;
  line-height: 1.3;
}

.top-beer-img-frame {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  overflow: hidden;
  background: #252525;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.top-beer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-beer-name {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.top-beer-scores {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.top-beer-score {
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.top-beer-score i {
  font-size: 11px;
}

.top-beer-score--expert {
  color: #fbbf24;
}

.top-beer-score--lover {
  color: #60a5fa;
}

.top-beers-cta {
  text-align: center;
  margin-top: 36px;
}

.view-all-btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #1e3a8a);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
  .top-beers-section {
    padding: 40px 15px;
  }

  .top-beers-inner > h2 {
    font-size: 22px;
    margin-bottom: 28px;
  }

  .top-beers-grid {
    gap: 14px;
  }

  .top-beer-card {
    width: 140px;
    padding: 14px 10px 12px;
  }

  .top-beer-img-frame {
    width: 74px;
    height: 74px;
    border-radius: 12px;
  }

  .top-beer-name {
    font-size: 12px;
  }
}

/* ==============================
   Beer Detail - Beer Lover Score (reversed colors)
   ============================== */

.beer_details_ofb3 .score.score--beer-lover {
  background: linear-gradient(135deg, #ffea71, gold);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.beer_details_ofb3 .score.score--beer-lover::before {
  background: rgba(30, 58, 138, 0.1);
}

.beer_details_ofb3 .score.score--beer-lover .score-value {
  color: #1e3a8a;
}

.beer_details_ofb3 .score.score--beer-lover .score-label {
  color: #1e3a8a;
}
