:root {
  --sidebar-grad-start: #e4603c;
  --sidebar-grad-end: #f2b15b;
  --profile-text-color: #000;
  --main-bg: #f8f9fa;
  --main-grad: linear-gradient(to right, #ff8373, #fed278);
  --tile-bg: #fffbef;
  --tile-label-bg: #fdc894;
  --author-text-color: #f38f31;
}
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: var(--main-bg);
  color: #333;
  padding-bottom: 60px;
  overflow-x: hidden;
  font-size: 13px;
  font-weight: 300;
}

.main-content {
  padding: 0 6px;
  transition: filter 0.3s ease;
  padding-bottom: 80px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

body.sidebar-open .main-content,
body.sidebar-open .main-header,
body.sidebar-open .bottom-nav {
  filter: blur(4px);
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: filter 0.3s ease;
}

.hamburger-menu {
  width: 22px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  z-index: 201;
  align-items: center;
}

.hamburger-line {
  height: 3px;
  background: var(--main-grad);
  transition: width 0.3s ease;
  width: 100%;
}

.hamburger-line:nth-child(3) {
  width: 60%;
  align-self: flex-start;
}

.header-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-icon {
  position: relative;
  font-size: 1.6rem;
  cursor: pointer;
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  background: var(--main-grad);
  color: black;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 600;
  height: 16px;
  width: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
}

.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  background-color: #fff;
  overflow: hidden;
  transition: width 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  width: 85%;
  max-width: 320px;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.sidebar-header {
  padding: 20px;
  text-align: center;
  flex-shrink: 0;
  background: linear-gradient(
    to right,
    var(--sidebar-grad-start),
    var(--sidebar-grad-end)
  );
  color: var(--profile-text-color);
  cursor: pointer;
}

.sidebar-header .profile-picture {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.sidebar-header .profile-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.sidebar-header .profile-id,
.sidebar-header .profile-details {
  margin: 4px 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 15px;
}

.sidebar-body {
  background-color: #fff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin-top: -18px;
  position: relative;
  padding-top: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding-bottom: 90px;
}

.search-container {
  padding: 0 16px 12px;
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: #f1f3f4;
  border-radius: 8px;
  padding: 8px 12px;
}

.search-box input {
  flex-grow: 1;
  border: none;
  background: transparent;
  color: #333;
  font-size: 0.95rem;
  outline: none;
  margin-left: 8px;
}

.search-box input::placeholder {
  color: #aaa;
}

.search-box i {
  color: #888;
  font-size: 1.1rem;
}

.sidebar-menu {
  flex-grow: 1;
  overflow-y: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.sidebar-menu a {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1rem;
  color: #777;
  font-weight: 400;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu a i {
  font-size: 1.25rem;
  line-height: 1;
}

.sidebar-menu a:hover {
  background-color: #f5f5f5;
}

.sidebar-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
  z-index: 30;
}

.logout-button {
  background: linear-gradient(to left, #ffb347, #ff8a3b);
  color: black;
  border: none;
  padding: 12px 16px;
  border-radius: 22px;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  width: 100%;
}

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

.section-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
}

.section-header p {
  font-size: 0.9rem;
  color: #666;
  margin: 5px 0 0;
}

.timetable-section {
  margin-top: 20px;
}

.cta-button {
  background: var(--main-grad);
  color: black;
  border: none;
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.horizontal-scroll-container {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 15px;
  margin-bottom: 15px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.horizontal-scroll-container::-webkit-scrollbar {
  display: none;
}

.timetable-card {
  flex: 0 0 calc(50% - 7.5px);
  min-width: 210px;
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: none;
  display: flex;
  flex-direction: column;
  min-height: 130px;
}

.timetable-card .card-body {
  background: linear-gradient(
    to right,
    var(--sidebar-grad-start),
    var(--sidebar-grad-end)
  );
  color: var(--profile-text-color);
  padding: 15px;
  flex-grow: 1;
  position: relative;
}

.timetable-card .card-text .course-code {
  font-size: 1.2rem;
  font-weight: 400;
  display: block;
}
.timetable-card .card-text .room-number {
  font-size: 0.8rem;
  font-weight: 300;
  display: block;
}
.timetable-card .card-text .divider-line {
  width: 20px;
  height: 2px;
  background-color: white;
  margin-top: 5px;
  opacity: 0.7;
}
.timetable-card .card-icon {
  position: absolute;
  bottom: 5px;
  right: 10px;
}

.timetable-card .card-icon-img {
  width: 70px;
  height: 70px;
  opacity: 0.2;
}

.timetable-card .card-header {
  background-color: #2c2f33;
  color: white;
  padding: 3px 12px;
  font-weight: 400;
  font-size: 0.9rem;
  text-align: center;
  order: 2;
}

.dashboard-tiles-section {
  margin-top: 30px;
}

.add-button {
  background-color: #2c3e50;
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  border: none;
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
  padding-bottom: 15px;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tile {
  position: relative;
  background-color: var(--tile-bg);
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #333;
  min-height: 160px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.tile-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--main-grad);
  color: black;
  border-radius: 8px;
  padding: 3px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 2px solid var(--tile-bg);
}

.tile-image {
  width: 70px;
  height: 70px;
  margin-bottom: 10px;
  object-fit: contain;
  max-width: 64px;
  max-height: 64px;
  width: auto;
  height: auto;
  margin-bottom: 12px;
  object-fit: contain;
}

.tile-label {
  background-color: var(--tile-label-bg);
  color: black;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  width: auto;
  max-width: 90%;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
  z-index: 100;
  transition: filter 0.3s ease;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #999;
  text-decoration: none;
  font-size: 0.75rem;
}

.nav-item i {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.nav-item.active {
  color: #f39c12;
}

.hidden {
  display: none !important;
}

.full-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--main-bg);
  z-index: 500;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.content-blurred {
  filter: blur(8px);
  transition: filter 0.3s ease-in-out;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #31353a;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  position: relative;
}

.page-header .icon {
  font-size: 1.6rem;
  cursor: pointer;
}

.page-header h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  flex-grow: 1;
  text-align: center;
}

#mess-pass-page .page-header .icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

#mess-pass-page .page-header h1 {
  padding-right: 30px;
  padding-left: 30px;
}

.messages-search-container {
  padding: 15px;
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}

.messages-search-bar {
  display: flex;
  align-items: center;
  background-color: var(--main-bg);
  border-radius: 8px;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
}

.messages-search-bar i {
  color: #888;
  font-size: 1.3rem;
}

.messages-search-bar input {
  flex-grow: 1;
  border: none;
  background: transparent;
  color: #333;
  font-size: 1rem;
  outline: none;
  margin-left: 10px;
}

.messages-list {
  padding: 0 15px 15px 15px;
  overflow-y: auto;
  flex-grow: 1;
}

.message-card {
  background-color: #ffffff;
  padding: 12px 15px;
  border-radius: 8px;
  margin-top: 15px;
  border: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.07);
}

.message-card h3 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  font-weight: 300;
}

.message-card .preview {
  margin: 0 0 8px 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #666;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-weight: 300;
}

.message-card .meta {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--author-text-color);
}

.profile-page-content {
  padding: 15px;
}

.profile-header-card {
  background: linear-gradient(
    to right,
    var(--sidebar-grad-start),
    var(--sidebar-grad-end)
  );
  border-radius: 5px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--profile-text-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.profile-header-card img {
  width: 130px;
  height: 130px;
  border-radius: 5px;
  object-fit: cover;
  margin-bottom: 15px;
  border: 2px solid #000;
  box-sizing: border-box;
}

.profile-header-card h2 {
  margin: 0 0 5px 0;
  font-size: 1rem;
  font-weight: 400;
}

.profile-header-card p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: nowrap;
}

.profile-details-container {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.profile-section {
  padding: 0 20px;
}

.profile-section:last-child {
  padding-bottom: 15px;
}

.profile-section h3 {
  margin: 0 -20px 5px -20px;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: 400;
  background-color: #323232;
  color: white;
  border-bottom: 1px solid #1a1a1a;
  border-radius: 0;
  text-align: center;
  margin-top: 20px;
}

.profile-field {
  padding: 4px 0;
}

.field-label {
  color: #212121;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
}

.field-value {
  color: #555;
  font-weight: 300;
  font-size: 0.8rem;
}

.mess-coupon-page-content {
  padding: 15px;
}

.mess-coupon-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #303134;
  color: #ffffff;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  justify-content: space-between;
  border-bottom: 1px solid #333;
  box-shadow: none;
  z-index: 110;
}
.mess-coupon-header .title {
  font-weight: 500;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  pointer-events: none;
}
.mess-coupon-header .link {
  font-size: 0.95rem;
  cursor: pointer;
  margin-left: auto;
  color: #ffffff;
}
.mess-coupon-header .icon {
  color: #ffffff;
}

.mess-profile-card {
  background: linear-gradient(
    to right,
    var(--sidebar-grad-start),
    var(--sidebar-grad-end)
  );
  border-radius: 5px;
  padding: 20px;
  color: var(--profile-text-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.mess-profile-card .profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.mess-profile-card .name {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 400;
  margin: 0 0 20px 0;
}

.mess-profile-card .detail {
  margin-bottom: 12px;
  font-size: 0.75rem;
  line-height: 1.5;
}

.mess-profile-card .detail-label {
  font-weight: 500;
  display: block;
}

.mess-meal-selection {
  height: 300px;
  background-color: #ffffff;
  padding: 20px 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.scan-instruction {
  text-align: center;
  margin: 12px 0 20px 0;
  font-size: 1.3rem;
  font-weight: 500;
  color: #444;
}

.meal-buttons-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 8px;
  justify-items: center;
}

.meal-button {
  background: linear-gradient(
    to right,
    var(--sidebar-grad-start),
    var(--sidebar-grad-end)
  );
  color: var(--profile-text-color);
  border: none;
  width: 90%;
  padding: 20px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 15px rgba(228, 94, 32, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.camera-scanner-page {
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  overflow: hidden;
}
#video-stream {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 501;
}
.viewfinder {
  width: 70vw;
  height: 70vw;
  max-width: 280px;
  max-height: 280px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  position: relative;
  background: transparent;
  z-index: 502;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
}
.viewfinder .center-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: #e45e20;
  box-shadow: 0 0 5px #e45e20;
  transform: translateY(-50%);
}
.scanner-instruction {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
  z-index: 502;
}

.loading-page {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 600;
}

.loading-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loading-seal {
  width: 70px;
  height: 70px;
  position: absolute;
}
.loading-spinner {
  width: 70px;
  height: 70px;
  border: 4px solid rgba(228, 94, 32, 0.2);
  border-top: 3px solid var(--sidebar-grad-start);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.mess-pass-page-content {
  padding: 20px;
}
.mess-pass-card {
  background-color: #fff;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  padding: 20px;
  box-shadow:
    0 0 6px rgba(100, 99, 100, 0.25),
    0 10px 25px rgba(0, 0, 0, 0.08);
  position: relative;
  font-family: "Poppins", sans-serif;
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.pass-countdown {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #b7b9bc;
  color: #495057;
  width: 36px;
  height: 36px;
  border-radius: 45%;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
}
.pass-header {
  display: flex;
  align-items: center;
  gap: 15px;
}
.pass-header img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #000;
  box-sizing: border-box;
}
.pass-header .info h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #000;
}
.pass-header .info p {
  margin: 2px 0;
  font-size: 0.9rem;
  color: #1c1a1a;
  font-weight: 600;
}
#pass-program{
  color: black;
  font-size: 12px;
  font-weight: 500;
}
.pass-details p {
  margin: 4px 0 10px;
  font-size: 0.85rem;
  color: #666;
}
.pass-time {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 15px 0;
  color: #333;
}
.meal-approved {
  margin-top: 45px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 500;
  color: #71bb3f;
  margin-bottom: 5px;
}

.accepted-video-container {
  margin-left: -20px;
  margin-right: -20px;
  background-color: #fcfbfc;
  border-left: 12px solid #551149;
  border-right: 12px solid #551149;
  border-top: 16px solid #551149;
  border-bottom: 16px solid #551149;

  flex-grow: 1;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -1px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.accepted-video {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  object-fit: contain;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  width: 80%;
  max-width: 300px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-content {
  transform: scale(0.9);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 500;
  color: #333;
}

.token-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #eee;
}

.token-display i {
  font-size: 3rem;
  color: #f39c12;
}

.token-display p {
  margin: 0;
  font-size: 3rem;
  font-weight: 600;
  color: #333;
}

#alert-modal .modal-content {
  padding: 25px;
}

#alert-modal-title {
  margin-top: 0;
  margin-bottom: 10px;
  color: #e74c3c;
}

#alert-modal-message {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 25px;
}

#alert-modal-ok-btn {
  padding: 12px 30px;
  font-size: 1rem;
  width: 100%;
}

a.sidebar-header,
a.sidebar-header:visited {
  text-decoration: none;
  color: inherit;
}

a.icon-link,
a.icon-link:visited {
  text-decoration: none;
  color: inherit;
}

a.notification-icon,
a.notification-icon:visited {
  text-decoration: none;
  color: inherit;
}

.page-header h1,
.page-header .title,
.announcement-header .title,
.attendance-header .title,
.fee-header .title,
.mess-coupon-header .title {
  font-size: 1rem;
  font-weight: 300;
}

.page-header .icon,
.page-header .back-arrow,
.announcement-header .back-arrow,
.attendance-header .back-arrow,
.fee-header .back-arrow,
.mess-coupon-header .back-arrow {
  font-size: 1.6rem;
}

.tiles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  box-sizing: border-box;
}

.tile {
  min-width: 0;
  box-sizing: border-box;
  padding: 8px;
}

.tile-badge {
  top: -6px;
  right: -6px;
  padding: 3px 6px;
  font-size: 0.7rem;
}

.tile-image {
  max-width: 64px;
  max-height: 64px;
  width: auto;
  height: auto;
  margin-bottom: 12px;
  object-fit: contain;
}

@media (max-width: 420px) {
  .main-content {
    padding-left: 8px;
    padding-right: 8px;
  }

  .tiles-grid {
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tile {
    padding: 6px;
    min-height: 130px;
  }

  .tile-image {
    max-width: 56px;
    max-height: 56px;
  }

  .tile-label {
    font-size: 0.72rem;
    padding: 6px 8px;
  }
}

.tiles-grid.tiles-elevated {
  transform: translateY(-20px);
}