/* BBNL Member Area Redesign - Global Design System */

:root {
  --rd-navy: #0b1f3a;
  --rd-navy-dark: #071528;
  --rd-navy-light: #132d52;
  --rd-accent: #e63950;
  --rd-accent-hover: #cf2f45;
  --rd-accent-gradient-start: #ED1847;
  --rd-accent-gradient-end: #FF4F74;
  --rd-menu-active-gradient: linear-gradient(180deg, var(--rd-accent-gradient-start) 0%, var(--rd-accent-gradient-end) 100%);
  --rd-bg: #f4f6f9;
  --rd-white: #ffffff;
  --rd-text: #1a2b42;
  --rd-text-muted: #6b7a90;
  --rd-border: #e4e9f0;
  --rd-border-width: 1px;
  --rd-success: #22c55e;
  --rd-success-bg: #ecfdf3;
  --rd-warning: #f59e0b;
  --rd-warning-bg: #fffbeb;
  --rd-danger: #ef4444;
  --rd-danger-bg: #fef2f2;
  --rd-sidebar-width: 265px;
  --rd-sidebar-min-height: 830px;
  --rd-top-header-height: 74px;
  --rd-radius: 14px;
  --rd-radius-sm: 10px;
  --rd-shadow: 0 4px 24px rgba(11, 31, 58, 0.08);
  --rd-shadow-sm: 0 2px 12px rgba(11, 31, 58, 0.06);
  --rd-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --rd-font-menu: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base */
.app-body {
  margin: 0;
  padding: 0;
  font-family: var(--rd-font);
  background: var(--rd-bg);
  color: var(--rd-text);
  -webkit-font-smoothing: antialiased;
}

.app-body h1,
.app-body h2,
.app-body h3,
.app-body h4,
.app-body h5,
.app-body h6,
.rd-page-header h1,
.rd-card__head h3,
.rd-profile-hero__name {
  font-family: var(--rd-font);
}

.app-sidebar,
.app-sidebar__label,
.app-sidebar__nav a,
.app-sidebar__logout {
  font-family: var(--rd-font-menu);
}

.app-body .inner-panel .panel {
  margin: 10px 0;
}

/* Shell Layout */
.app-shell {
  display: flex;
  min-height: calc(100vh - var(--rd-top-header-height));
  position: relative;
}

body.has-site-header {
  background: var(--rd-bg);
}

body.has-site-header .home-header {
  position: sticky;
  top: 0;
  z-index: 1060;
}

body.has-site-header .app-shell {
  background: var(--rd-bg);
}

body.has-site-header .app-main {
  background: var(--rd-bg);
  min-height: calc(100vh - var(--rd-top-header-height));
}

body.has-site-header .app-sidebar {
  top: var(--rd-top-header-height);
  height: calc(100vh - var(--rd-top-header-height));
  padding-bottom: 0;
}

body.has-site-header .app-mobile-bar {
  display: none !important;
}

@media (max-width: 768px) {
  body.has-site-header .home-header__menu-toggle {
    display: flex;
  }

  body.has-site-header .app-sidebar {
    top: 0;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    z-index: 1070;
  }

  .app-sidebar__nav {
    gap: 10px;
    padding-bottom: 12px;
  }

  .app-sidebar__nav a {
    min-height: 48px;
    padding: 10px 14px;
  }

  .app-sidebar__logout {
    min-height: 52px;
  }
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: var(--rd-sidebar-width);
  transition: margin-left 0.3s ease;
}

.app-content {
  flex: 1;
  padding: 28px 32px 40px;
}

.app-main .app-member-footer {
  margin-top: auto;
  width: 100%;
}

.app-main .app-member-footer .home-footer__bottom {
  max-width: none;
  margin: 0;
  padding-left: 24px;
  padding-right: 24px;
}

/* Border normalization across all member pages */
.app-content .form-control,
.app-content .form-control.input-sm {
  border: var(--rd-border-width) solid var(--rd-border) !important;
  border-radius: var(--rd-radius-sm) !important;
  box-shadow: none !important;
  background-color: var(--rd-white);
  color: var(--rd-navy);
}

.app-content .form-control:focus {
  border-color: var(--rd-navy) !important;
  box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.08) !important;
  outline: none !important;
}

.app-content .panel,
.app-content .panel-default {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.app-content .panel-heading,
.app-content .panel-footer {
  border: none !important;
  background: transparent !important;
}

.app-content .panel-body {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.app-content .table,
.app-content .table-bordered,
.app-content .table-bordered > thead > tr > th,
.app-content .table-bordered > tbody > tr > td,
.app-content .table-bordered > tfoot > tr > td {
  border-color: var(--rd-border) !important;
}

.app-content .pagination > li > a,
.app-content .pagination > li > span {
  border-color: var(--rd-border) !important;
}

.rd-card,
.rd-bill-toolbar,
.rd-bill-card,
.rd-usage-records,
.rd-usage-info-card,
.rd-usage-stat-card,
.rd-password-card,
.rd-edit-profile-card,
.rd-bill-empty,
.rd-photo-device-card,
.rd-photo-upload,
.rd-alert,
.rd-field {
  border: var(--rd-border-width) solid var(--rd-border);
}

/* Sidebar */
.app-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 40, 0.55);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-sidebar-backdrop.is-visible {
  display: block;
  opacity: 1;
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--rd-sidebar-width);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  background: linear-gradient(180deg, var(--rd-navy) 0%, var(--rd-navy-dark) 100%);
  display: flex;
  flex-direction: column;
  z-index: 1050;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.app-sidebar__label {
  padding: 24px 24px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

.app-sidebar__nav {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: none;
  padding: 0 24px 24px 24px;
  box-sizing: border-box;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.app-sidebar__nav::-webkit-scrollbar {
  width: 6px;
}

.app-sidebar__nav::-webkit-scrollbar-track {
  background: transparent;
}

.app-sidebar__nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.app-sidebar__nav li {
  margin-bottom: 0;
}

.app-sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none !important;
  font-family: var(--rd-font-menu);
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  letter-spacing: 0.002em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  min-height: 58px;
}

.app-sidebar__nav a span {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  letter-spacing: 0.002em;
}

.app-sidebar__nav a i {
  flex: 0 0 12.25px;
  width: 12.25px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.25px;
  line-height: 14px;
  color: #fff;
  opacity: 0.85;
}

.app-sidebar__nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  text-decoration: none !important;
}

.app-sidebar__nav li.is-active a,
.app-sidebar__nav li.is-active a:visited {
  background: var(--rd-menu-active-gradient);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(237, 24, 71, 0.35);
}

.app-sidebar__nav li.is-active a i {
  opacity: 1;
}

.app-sidebar__footer {
  padding: 12px 24px calc(20px + env(safe-area-inset-bottom, 0px)) 24px;
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 21, 40, 0.92) 35%, rgba(7, 21, 40, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar__logout,
.app-sidebar__logout:visited,
.app-sidebar__logout:focus {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  max-width: none;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff !important;
  text-decoration: none !important;
  font-family: var(--rd-font-menu);
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  letter-spacing: 0;
  min-height: 60px;
  box-sizing: border-box;
  transition: background 0.2s;
}

.app-sidebar__logout i {
  flex: 0 0 14px;
  width: 14px;
  height: 20px;
  padding: 2.75px 0 3.25px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  color: #fff;
}

.app-sidebar__logout span {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  letter-spacing: 0;
}

.app-sidebar__logout:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  text-decoration: none !important;
}

/* Mobile Top Bar */
.app-mobile-bar {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--rd-white);
  border-bottom: 1px solid var(--rd-border);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.app-mobile-bar__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--rd-bg);
  border-radius: 10px;
  color: var(--rd-navy);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
}

.app-mobile-bar__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--rd-navy);
  margin: 0;
}

.app-mobile-bar__logo img {
  height: 28px;
}

body.sidebar-open {
  overflow: hidden;
}

/* Cards & Components */
.rd-page-header {
  margin-bottom: 28px;
}

.rd-page-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--rd-navy);
  margin: 0 0 6px;
}

.rd-page-header p {
  font-size: 15px;
  color: var(--rd-text-muted);
  margin: 0;
}

.rd-card {
  background: var(--rd-white);
  border-radius: var(--rd-radius);
  box-shadow: var(--rd-shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
}

.rd-card__body {
  padding: 24px 28px;
}

.rd-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rd-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  color: var(--rd-navy);
  margin: 0 0 20px;
}

.rd-section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--rd-navy);
}

.rd-section-title--accent::before {
  background: var(--rd-accent);
}

/* Profile Hero Card */
.rd-profile-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.rd-profile-hero__photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.rd-profile-hero__photo {
  width: 110px;
  height: 110px;
  border-radius: 9999px;
  object-fit: cover;
  border: 4px solid var(--rd-border);
}

.rd-profile-hero__edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--rd-white);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 1px solid var(--rd-border);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.rd-profile-hero__edit:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
  text-decoration: none;
}

.rd-profile-hero__info h2 {
  font-family: var(--rd-font-menu);
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0;
  color: var(--rd-navy);
  margin: 0 0 8px;
}

.rd-profile-hero__id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--rd-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--rd-text-muted);
}

.rd-profile-hero__id strong {
  font-family: var(--rd-font);
  color: var(--rd-navy);
  font-weight: 400;
}

/* Field Grid */
.rd-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rd-field-grid--single {
  grid-template-columns: 1fr;
}

.rd-field {
  background: var(--rd-bg);
  border-radius: var(--rd-radius-sm);
  padding: 16px 18px;
  position: relative;
}

.rd-field--full {
  grid-column: 1 / -1;
}

.rd-field__icon {
  color: var(--rd-accent);
  font-size: 14px;
  margin-bottom: 8px;
}

.rd-field__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--rd-text-muted);
  margin-bottom: 6px;
}

.rd-field__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--rd-navy);
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.rd-field__value--muted {
  color: var(--rd-text-muted);
  font-weight: 500;
}

.rd-field__edit {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--rd-navy);
  background: var(--rd-white);
  border: 1px solid var(--rd-border);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.rd-field__edit:hover {
  background: var(--rd-accent);
  color: #fff;
  border-color: var(--rd-accent);
  text-decoration: none;
}

/* Status Badge */
.rd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 8px;
  vertical-align: middle;
}

.rd-badge--success {
  background: var(--rd-success-bg);
  color: var(--rd-success);
}

.rd-badge--warning {
  background: var(--rd-warning-bg);
  color: var(--rd-warning);
}

.rd-badge--danger {
  background: var(--rd-danger-bg);
  color: var(--rd-danger);
}

.rd-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* Profile Page */
.rd-profile-page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
}

.rd-profile-page .rd-page-header {
  margin-bottom: 28px;
}

.rd-profile-page .rd-card {
  border: 1px solid var(--rd-border);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(11, 31, 58, 0.05);
  margin-bottom: 20px;
}

.rd-profile-page .rd-card__body {
  padding: 28px 32px 32px;
}

.rd-profile-page .rd-profile-hero {
  align-items: center;
  gap: 24px;
}

.rd-profile-page .rd-profile-hero__photo {
  width: 110px;
  height: 110px;
  border: 4px solid var(--rd-white);
  box-shadow: 0 0 0 1px var(--rd-border);
}

.rd-profile-page .rd-profile-hero__edit {
  width: 36px;
  height: 36px;
  font-size: 14px;
  bottom: 2px;
  right: 2px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  border: 2px solid var(--rd-white);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.rd-profile-page .rd-profile-hero__edit:hover {
  background: #2563eb;
  color: #fff;
  border-color: var(--rd-white);
}

.rd-profile-page .rd-profile-hero__info h2 {
  font-family: var(--rd-font-menu);
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.rd-profile-page .rd-profile-hero__id {
  font-family: var(--rd-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--rd-text-muted);
}

.rd-profile-page .rd-profile-hero__id strong {
  font-family: var(--rd-font);
  font-weight: 400;
  color: var(--rd-navy);
}

.rd-profile-page .rd-section-title {
  margin-bottom: 20px;
}

.rd-profile-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rd-profile-field-grid .rd-profile-field--full {
  grid-column: 1 / -1;
}

.rd-profile-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: var(--rd-white);
  border: 1px solid var(--rd-border);
  border-radius: 14px;
  padding: 18px 20px;
  min-height: 92px;
}

.rd-profile-field__icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
}

.rd-profile-field__body {
  flex: 1 1 auto;
  min-width: 0;
}

.rd-profile-field__label {
  display: block;
  font-family: var(--rd-font);
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--rd-text-muted);
  margin: 0 0 6px;
}

.rd-profile-field__value {
  font-family: var(--rd-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: 0;
  color: var(--rd-navy);
  margin: 0;
  word-break: break-word;
}

.rd-profile-field__value--muted {
  color: var(--rd-text-muted);
  font-weight: 600;
}

.rd-profile-field--status .rd-profile-field__value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rd-profile-field--status .rd-profile-field__value-text {
  flex: 1 1 auto;
  min-width: 0;
}

.rd-profile-field--status .rd-badge {
  margin-left: 0;
  flex-shrink: 0;
}

.rd-profile-field__edit {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #3b82f6;
  background: var(--rd-white);
  border: 1px solid var(--rd-border);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.rd-profile-field__edit:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
  text-decoration: none;
}

/* Alerts inside content */
.app-content .alert {
  border-radius: var(--rd-radius-sm);
  border: none;
}

/* Member Footer */
.app-footer {
  background: var(--rd-navy-dark);
  color: rgba(255, 255, 255, 0.75);
  margin-top: auto;
}

.app-footer__main {
  padding: 48px 32px 32px;
}

.app-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.app-footer__brand img {
  max-width: 130px;
  margin-bottom: 16px;
}

.app-footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

.app-footer__heading {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 20px;
}

.app-footer__contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.app-footer__contact-item i {
  color: var(--rd-accent);
  margin-top: 3px;
  width: 16px;
}

.app-footer__social {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.app-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s;
}

.app-footer__social a:hover {
  background: var(--rd-accent);
  color: #fff;
  text-decoration: none;
}

.app-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.app-footer__bottom a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  margin-left: 20px;
}

.app-footer__bottom a:hover {
  color: #fff;
  text-decoration: none;
}

.app-footer__links {
  display: flex;
  align-items: center;
}

/* Responsive */
@media (max-width: 992px) {
  .app-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .app-footer__social-col {
    grid-column: 1 / -1;
  }

  .app-footer__social {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .app-main {
    margin-left: 0;
  }

  .app-sidebar {
    transform: translateX(-100%);
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }

  .app-mobile-bar {
    display: flex;
  }

  .app-content {
    padding: 20px 16px 32px;
  }

  .rd-page-header h1 {
    font-size: 22px;
  }

  .rd-profile-page .rd-page-header h1 {
    font-size: 22px;
    line-height: 30px;
  }

  .rd-profile-page .rd-page-header p {
    font-size: 13px;
    line-height: 18px;
  }

  .rd-field-grid {
    grid-template-columns: 1fr;
  }

  .rd-profile-field-grid {
    grid-template-columns: 1fr;
  }

  .rd-profile-page .rd-card__body {
    padding: 20px 16px;
  }

  .rd-profile-page .rd-profile-hero {
    flex-direction: column;
    text-align: center;
  }

  .rd-profile-hero {
    flex-direction: column;
    text-align: center;
  }

  .rd-card__body {
    padding: 20px 16px;
  }

  .app-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .app-footer__contact-item {
    justify-content: center;
  }

  .app-footer__social {
    justify-content: start;
  }

  .app-footer__bottom {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .app-footer__links {
    justify-content: center;
  }

  .app-footer__bottom a {
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .rd-profile-hero__photo {
    width: 96px;
    height: 96px;
  }

  .rd-profile-hero__info h2 {
    font-size: 26px;
    line-height: 34px;
  }

  .rd-profile-hero__id {
    font-size: 15px;
    line-height: 22px;
  }

  .rd-field__value {
    font-size: 14px;
  }
}

/* ===== Shared Member Page Headers ===== */
.app-content .rd-pay-page .rd-page-header,
.app-content .rd-complaint .rd-page-header,
.app-content .rd-password .rd-page-header,
.app-content .rd-edit-profile .rd-page-header,
.app-content .rd-photo-album .rd-page-header,
.app-content .rd-profile-page .rd-page-header,
.app-content .rd-page-header--row {
  width: 100%;
  max-width: 100%;
  margin: 0 0 28px;
  text-align: left;
}

.app-content .rd-pay-page .rd-page-header h1,
.app-content .rd-complaint .rd-page-header h1,
.app-content .rd-password .rd-page-header h1,
.app-content .rd-edit-profile .rd-page-header h1,
.app-content .rd-photo-album .rd-page-header h1,
.app-content .rd-profile-page .rd-page-header h1,
.app-content .rd-usage-header .rd-page-header h1,
.app-content .rd-page-header--row h1 {
  font-family: var(--rd-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0;
  color: #071E3E;
  margin: 0 0 6px;
  text-align: left;
}

.app-content .rd-pay-page .rd-page-header p,
.app-content .rd-complaint .rd-page-header p,
.app-content .rd-password .rd-page-header p,
.app-content .rd-edit-profile .rd-page-header p,
.app-content .rd-photo-album .rd-page-header p,
.app-content .rd-profile-page .rd-page-header p,
.app-content .rd-usage-header .rd-page-header p,
.app-content .rd-page-header--row p {
  font-family: var(--rd-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 0;
  color: var(--rd-text-muted);
  margin: 0;
  text-align: left;
}

/* ===== Make Payment Page ===== */
.rd-alert {
  background: var(--rd-white);
  border-left: 4px solid var(--rd-accent);
  border-radius: var(--rd-radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: var(--rd-shadow-sm);
}

.rd-pay-page .rd-alert {
  background: #FFFFFF;
  border: 1px solid #F3F4F6;
  border-left: 4px solid #ED1847;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px -2px rgba(17, 43, 90, 0.05);
}

.rd-pay-page .rd-alert__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rd-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.002em;
  color: #071E3E;
  margin: 0 0 10px;
}

.rd-pay-page .rd-alert__title i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ED1847;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.rd-pay-page .rd-alert__body,
.rd-pay-page .rd-alert p:not(.rd-alert__title) {
  font-family: var(--rd-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  color: var(--rd-text-muted);
  margin: 0;
  word-break: break-word;
}

.rd-pay-page .rd-alert__body strong,
.rd-pay-page .rd-alert p:not(.rd-alert__title) strong {
  font-weight: 600;
  color: #071E3E;
}

.rd-alert__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--rd-navy);
  margin: 0 0 8px;
}

.rd-alert__title i {
  color: var(--rd-accent);
}

.rd-alert p {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--rd-text-muted);
  line-height: 1.5;
  word-break: break-word;
}

.rd-alert p:last-child {
  margin-bottom: 0;
}

.rd-deny-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #ef4444;
  color: #fff;
  border-radius: var(--rd-radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.rd-deny-banner.hidden {
  display: none;
}

.rd-deny-banner__icon {
  font-size: 28px;
  flex-shrink: 0;
  color: #fbbf24;
}

.rd-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.rd-pay-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.rd-pay-card__head i {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 16px;
}

.rd-pay-card__head i.rd-icon--green {
  background: var(--rd-success-bg);
  color: var(--rd-success);
}

.rd-pay-card__head i.rd-icon--pink {
  background: #fce8ec;
  color: var(--rd-accent);
}

.rd-pay-card__head i.rd-icon--blue {
  background: #e8f0fe;
  color: #2563eb;
}

.rd-pay-page .rd-pay-card__head h3 {
  margin: 0;
  font-family: var(--rd-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 0.002em;
  color: #071E3E;
}

.rd-pay-card__head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--rd-navy);
}

.rd-pay-page .rd-current-plan__name {
  font-family: var(--rd-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  color: #071E3F;
  margin: 0 0 16px;
}

.rd-current-plan__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--rd-navy);
  margin: 0 0 16px;
}

.rd-pay-page .rd-current-plan__name span {
  color: #071E3F;
}

.rd-current-plan__name span {
  color: var(--rd-success);
}

.rd-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.rd-pay-page .rd-detail-item__label {
  font-family: var(--rd-font);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--rd-text-muted);
  margin-bottom: 4px;
}

.rd-detail-item__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--rd-text-muted);
  margin-bottom: 4px;
}

.rd-pay-page .rd-detail-item__value {
  font-family: var(--rd-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  color: #071E3E;
  word-break: break-word;
}

.rd-detail-item__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--rd-navy);
  word-break: break-word;
}

.rd-detail-item__value--danger {
  color: var(--rd-accent);
}

.rd-detail-item--full {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--rd-border);
}

.rd-iptv-link {
  cursor: pointer;
  color: var(--rd-success);
  font-weight: 600;
}

/* Plan list — scoped to redesign grid; overrides legacy style.css colors */
.rd-pay-grid .plan-list ul {
  list-style: none;
  margin: 0 !important;
  padding: 0;
}

.rd-pay-grid .plan-list ul li,
.rd-pay-grid .plan-list ul li.monthly,
.rd-pay-grid .plan-list ul li.quarterly,
.rd-pay-grid .plan-list ul li.halfyearly,
.rd-pay-grid .plan-list ul li.yearly {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin: 0 0 12px 0 !important;
  border: 2px solid var(--rd-border) !important;
  border-bottom: 2px solid var(--rd-border) !important;
  border-radius: var(--rd-radius-sm);
  background: var(--rd-white) !important;
  color: var(--rd-navy) !important;
  cursor: pointer;
  min-height: 72px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: none;
}

.rd-pay-grid .plan-list ul li:last-child {
  margin-bottom: 0 !important;
}

.rd-pay-grid .plan-list ul li:hover {
  border-color: #c5d0de !important;
  background: var(--rd-white) !important;
}

.rd-pay-grid .plan-list ul li.active,
.rd-pay-grid .plan-list ul li.active.monthly,
.rd-pay-grid .plan-list ul li.active.quarterly,
.rd-pay-grid .plan-list ul li.active.halfyearly,
.rd-pay-grid .plan-list ul li.active.yearly {
  border: 2px solid var(--rd-navy) !important;
  background: var(--rd-white) !important;
  color: var(--rd-navy) !important;
  box-shadow: 0 0 0 1px var(--rd-navy);
}

.rd-pay-grid .plan-list ul li::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.2s;
  background: var(--rd-white);
}

.rd-pay-grid .plan-list ul li.active::before {
  border-color: var(--rd-navy);
  background: var(--rd-navy);
  box-shadow: inset 0 0 0 4px #fff;
}

.rd-pay-grid .plan-list .plan-rate,
.rd-pay-grid .plan-list .plan-details {
  display: none !important;
}

.rd-plan-option__body {
  flex: 1;
  min-width: 0;
}

.rd-pay-page .rd-plan-option__title {
  font-family: var(--rd-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  color: #071E3F;
  margin: 0 0 4px;
}

.rd-plan-option__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--rd-navy);
  margin: 0 0 4px;
}

.rd-pay-page .rd-plan-option__meta,
.rd-pay-page .rd-plan-option__billed {
  font-family: var(--rd-font);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--rd-text-muted);
  margin: 0 0 2px;
}

.rd-plan-option__meta {
  font-size: 13px;
  color: var(--rd-text-muted);
  margin: 0 0 2px;
  line-height: 1.4;
}

.rd-plan-option__billed {
  font-size: 12px;
  color: var(--rd-text-muted);
  margin: 0;
}

.rd-pay-page .rd-plan-option__price {
  font-family: var(--rd-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  color: #071E3E;
  flex-shrink: 0;
  text-align: right;
  align-self: center;
  padding-left: 8px;
}

.rd-plan-option__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--rd-navy);
  flex-shrink: 0;
  text-align: right;
  align-self: center;
  padding-left: 8px;
}

.rd-plan-option__price .strikethrough {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--rd-text-muted);
}

.rd-plan-option__price .rd-price--sale {
  color: var(--rd-accent);
}

.rd-pending-note {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--rd-success-bg);
  border-radius: var(--rd-radius-sm);
  font-size: 13px;
  color: var(--rd-navy);
  text-align: center;
}

.rd-pending-note strong {
  color: var(--rd-accent);
}

/* Payment summary */
.rd-summary {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.rd-summary > li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rd-border);
  font-size: 14px;
  color: var(--rd-text-muted);
}

.rd-summary > li:last-child {
  border-bottom: none;
}

.rd-pay-page .rd-summary__label {
  flex-shrink: 0;
  font-family: var(--rd-font);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--rd-text-muted);
}

.rd-summary__label {
  flex-shrink: 0;
}

.rd-pay-page .rd-summary__value {
  font-family: var(--rd-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  color: #071E3E;
  text-align: right;
  word-break: break-word;
}

.rd-summary__value {
  font-weight: 600;
  color: var(--rd-navy);
  text-align: right;
  word-break: break-word;
}

.rd-summary__value--success {
  color: var(--rd-success);
}

.rd-summary__value--danger {
  color: var(--rd-danger);
}

.rd-summary .taxdetails {
  flex-direction: column;
  align-items: stretch;
  border-bottom: 1px solid var(--rd-border);
  padding-bottom: 10px;
}

.rd-pay-page .rd-summary .taxdetails .title-lbl {
  font-family: var(--rd-font);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--rd-text-muted);
  margin-bottom: 6px;
}

.rd-pay-page .rd-summary .taxdetails > div {
  font-family: var(--rd-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #071E3E;
}

.rd-summary .taxdetails .title-lbl {
  font-size: 13px;
  margin-bottom: 6px;
}

.rd-summary .taxdetails > div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  color: var(--rd-text-muted);
}

.rd-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0;
  margin-top: 8px;
  border-top: 2px solid var(--rd-border);
}

.rd-summary__total-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--rd-navy);
}

.rd-summary__total-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--rd-accent);
}

.rd-summary__ack {
  padding: 12px 14px;
  background: var(--rd-bg);
  border-radius: var(--rd-radius-sm);
  margin: 12px 0;
  font-size: 13px;
}

.rd-summary__ack label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--rd-text);
}

.rd-summary__ack input {
  margin-top: 3px;
  min-width: 16px;
  min-height: 16px;
}

.rd-confirm-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  min-height: 48px;
  border: none;
  border-radius: var(--rd-radius-sm);
  background: var(--rd-navy);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}

.rd-confirm-btn:hover {
  background: var(--rd-navy-light);
  color: #fff !important;
}

.rd-secure-note {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--rd-text-muted);
  margin-top: 12px;
}

@media (max-width: 992px) {
  .rd-pay-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rd-pay-grid .rd-pay-card--summary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .rd-pay-grid {
    grid-template-columns: 1fr;
  }

  .rd-pay-grid .rd-pay-card--summary {
    grid-column: auto;
  }

  .rd-detail-grid {
    grid-template-columns: 1fr;
  }

  .rd-pay-grid .plan-list ul li {
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .rd-plan-option__price {
    width: 100%;
    text-align: left;
    padding-left: 34px;
    padding-top: 4px;
  }
}

@media (max-width: 480px) {
  .rd-summary__total-value {
    font-size: 18px;
  }
}

/* ===== Take Bill Page ===== */
.rd-page-header--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rd-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 44px;
  border: var(--rd-border-width) solid var(--rd-success);
  border-radius: var(--rd-radius-sm);
  background: var(--rd-white);
  color: var(--rd-success);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.rd-export-btn:hover {
  background: var(--rd-success);
  color: #fff;
}

.rd-bill-toolbar {
  background: var(--rd-white);
  border-radius: var(--rd-radius);
  box-shadow: var(--rd-shadow-sm);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.rd-bill-toolbar__form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.rd-bill-field {
  flex: 1;
  min-width: 160px;
}

.rd-bill-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--rd-text-muted);
  margin-bottom: 6px;
}

.rd-bill-field__input {
  position: relative;
}

.rd-bill-field__input i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rd-text-muted);
  pointer-events: none;
}

.rd-bill-field__input input.form-control {
  height: 44px;
  padding: 10px 12px 10px 36px;
  border-radius: var(--rd-radius-sm);
  font-size: 14px;
  color: var(--rd-navy);
  width: 100%;
  box-shadow: none;
}

.rd-bill-field__input input.form-control:focus {
  border-color: var(--rd-navy);
  outline: none;
  box-shadow: 0 0 0 2px rgba(11, 31, 58, 0.1);
}

.rd-bill-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 44px;
  border: none;
  border-radius: var(--rd-radius-sm);
  background: var(--rd-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.rd-bill-search-btn:hover {
  background: var(--rd-accent-hover);
  color: #fff;
}

.rd-bill-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rd-bill-card {
  background: var(--rd-white);
  border-radius: var(--rd-radius);
  box-shadow: var(--rd-shadow-sm);
  overflow: hidden;
}

.rd-bill-card__summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  min-height: 72px;
  transition: background 0.15s;
}

.rd-bill-card__summary:hover {
  background: #fafbfc;
}

.rd-bill-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.rd-bill-card__icon--success {
  background: var(--rd-success-bg);
  color: var(--rd-success);
}

.rd-bill-card__icon--pending {
  background: #f1f5f9;
  color: #64748b;
}

.rd-bill-card__icon--failed {
  background: var(--rd-danger-bg);
  color: var(--rd-danger);
}

.rd-bill-card__info {
  flex: 1;
  min-width: 0;
}

.rd-bill-card__id {
  font-size: 15px;
  font-weight: 700;
  color: var(--rd-navy);
  margin: 0 0 4px;
  word-break: break-word;
}

.rd-bill-card__meta {
  font-size: 13px;
  color: var(--rd-text-muted);
  margin: 0;
  word-break: break-word;
}

.rd-bill-card__paid {
  text-align: right;
  flex-shrink: 0;
}

.rd-bill-card__paid-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--rd-text-muted);
  margin-bottom: 2px;
}

.rd-bill-card__paid-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--rd-navy);
}

.rd-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  text-transform: capitalize;
}

.rd-status--success {
  background: var(--rd-success-bg);
  color: var(--rd-success);
}

.rd-status--pending {
  background: #f1f5f9;
  color: #64748b;
}

.rd-status--failed {
  background: var(--rd-danger-bg);
  color: var(--rd-danger);
}

.rd-bill-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rd-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rd-border);
  background: var(--rd-bg);
  color: var(--rd-text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.rd-icon-btn:hover {
  background: var(--rd-navy);
  border-color: var(--rd-navy);
  color: #fff;
  text-decoration: none;
}

.rd-icon-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.rd-bill-card__chevron {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rd-text-muted);
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.rd-bill-card.is-open .rd-bill-card__chevron {
  transform: rotate(180deg);
}

.rd-bill-card__details {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid var(--rd-border);
}

.rd-bill-card.is-open .rd-bill-card__details {
  display: block;
}

.rd-bill-details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 20px;
  padding-top: 18px;
}

.rd-bill-detail__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--rd-text-muted);
  margin-bottom: 4px;
}

.rd-bill-detail__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--rd-navy);
  word-break: break-word;
}

.rd-bill-detail__value--danger {
  color: var(--rd-accent);
}

.rd-bill-remark {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--rd-border);
}

.rd-bill-remark__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--rd-text-muted);
  margin-bottom: 6px;
}

.rd-bill-remark__text {
  font-size: 13px;
  color: var(--rd-text-muted);
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}

.rd-bill-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--rd-white);
  border-radius: var(--rd-radius);
  color: var(--rd-text-muted);
}

.rd-bill-empty i {
  font-size: 36px;
  margin-bottom: 12px;
  color: #cbd5e1;
}

.rd-bill-empty h4 {
  margin: 0 0 6px;
  color: var(--rd-navy);
  font-weight: 600;
}

.rd-bill-empty p {
  margin: 0;
  font-size: 14px;
}

.rd-loadmore-wrap {
  text-align: center;
  margin-top: 24px;
}

.rd-loadmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  min-height: 44px;
  border: 1px solid var(--rd-border);
  border-radius: 24px;
  background: var(--rd-white);
  color: var(--rd-navy);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--rd-shadow-sm);
  transition: background 0.2s, border-color 0.2s;
}

.rd-loadmore:hover {
  background: var(--rd-bg);
  border-color: var(--rd-navy);
}

.rd-bill-loading {
  margin-top: 16px;
  text-align: center;
  color: var(--rd-accent);
  font-weight: 600;
}

@media (max-width: 992px) {
  .rd-bill-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .rd-page-header--row {
    flex-direction: column;
  }

  .rd-export-btn {
    width: 100%;
    justify-content: center;
  }

  .rd-bill-toolbar__form {
    flex-direction: column;
    align-items: stretch;
  }

  .rd-bill-field {
    min-width: 0;
  }

  .rd-bill-search-btn {
    width: 100%;
  }

  .rd-bill-card__summary {
    flex-wrap: wrap;
    gap: 12px;
  }

  .rd-bill-card__info {
    flex: 1 1 calc(100% - 60px);
  }

  .rd-bill-card__paid {
    text-align: left;
    order: 3;
  }

  .rd-bill-card__actions {
    order: 4;
    margin-left: auto;
  }

  .rd-bill-card__chevron {
    order: 5;
  }

  .rd-bill-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .rd-bill-card__summary {
    padding: 14px 16px;
  }

  .rd-bill-card__details {
    padding: 0 16px 16px;
  }

  .rd-bill-card__paid-value {
    font-size: 15px;
  }
}

/* ===== Usage Report Page ===== */
.rd-usage {
  width: 100%;
  max-width: 100%;
}

.rd-usage-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0;
  margin-bottom: 10px;
}

.rd-usage-header .rd-page-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 4px;
  margin: 0;
  width: 100%;
  max-width: 345px;
  min-height: 56px;
  flex: none;
  order: 0;
}

.rd-usage-header__actions {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0;
  gap: 16px;
  margin: 0 0 0 auto;
  min-height: 46px;
  flex: none;
  order: 1;
  flex-wrap: wrap;
}

.rd-usage-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 46px;
  border-radius: var(--rd-radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: var(--rd-border-width) solid transparent;
}

.rd-usage-toggle i {
  font-size: 15px;
}

.rd-usage-toggle--primary,
.rd-usage-toggle--primary:link,
.rd-usage-toggle--primary:visited,
.rd-usage-toggle--primary:focus,
.rd-usage-toggle--primary:active {
  background: var(--rd-navy);
  color: #fff !important;
  border-color: var(--rd-navy);
}

.rd-usage-toggle--primary:hover,
.rd-usage-toggle--primary:focus:hover {
  background: var(--rd-navy-light);
  color: #fff !important;
  text-decoration: none;
}

.rd-usage-toggle--primary i {
  color: #fff !important;
}

.rd-usage-toggle--outline,
.rd-usage-toggle--outline:link,
.rd-usage-toggle--outline:visited,
.rd-usage-toggle--outline:focus,
.rd-usage-toggle--outline:active {
  background: var(--rd-white);
  color: var(--rd-accent) !important;
  border-color: var(--rd-accent);
}

.rd-usage-toggle--outline:hover {
  background: var(--rd-danger-bg);
  color: var(--rd-accent-hover) !important;
  text-decoration: none;
}

.rd-usage-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  min-height: 104px;
  margin: 0 0 20px;
}

.rd-usage-info-card {
  width: 100%;
  background: var(--rd-white);
  border-radius: var(--rd-radius);
  box-shadow: var(--rd-shadow-sm);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  height: 104px;
  box-sizing: border-box;
}

.rd-usage-info-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.rd-usage-info-card__icon--blue {
  background: #eff6ff;
  color: #3b82f6;
}

.rd-usage-info-card__icon--red {
  background: #fef2f2;
  color: var(--rd-accent);
}

.rd-usage-info-card__icon--green {
  background: var(--rd-success-bg);
  color: var(--rd-success);
}

.rd-usage-info-card__label {
  font-family: var(--rd-font);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--rd-text-muted);
  margin: 0 0 4px;
}

.rd-usage-info-card__value {
  font-family: var(--rd-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 0.002em;
  color: #071E3F;
  margin: 0;
  word-break: break-word;
}

.rd-usage-info-card__value small {
  font-size: 14px;
  font-weight: 600;
  color: var(--rd-text-muted);
}

.rd-usage-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  min-height: 124px;
  margin: 0 0 24px;
}

.rd-usage-stat-card {
  position: relative;
  width: 100%;
  background: var(--rd-white);
  border-radius: var(--rd-radius);
  box-shadow: var(--rd-shadow-sm);
  padding: 24px 24px 24px 28px;
  overflow: hidden;
  min-height: 124px;
  height: 124px;
  box-sizing: border-box;
}

.rd-usage-stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.rd-usage-stat-card--up::before {
  background: #3b82f6;
}

.rd-usage-stat-card--down::before {
  background: var(--rd-accent);
}

.rd-usage-stat-card--total::before {
  background: var(--rd-success);
}

.rd-usage-stat-card__watermark {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 56px;
  opacity: 0.07;
  color: var(--rd-navy);
  pointer-events: none;
}

.rd-usage-stat-card__label {
  font-family: var(--rd-font);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--rd-text-muted);
  margin: 0 0 8px;
}

.rd-usage-stat-card__value {
  font-family: var(--rd-font);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.002em;
  color: var(--rd-navy);
  margin: 0;
}

.rd-usage-stat-card--up .rd-usage-stat-card__value {
  color: #2563eb;
}

.rd-usage-stat-card--down .rd-usage-stat-card__value {
  color: var(--rd-accent);
}

.rd-usage-stat-card--total .rd-usage-stat-card__value {
  color: var(--rd-success);
}

.rd-usage-records {
  background: var(--rd-white);
  border-radius: var(--rd-radius);
  box-shadow: var(--rd-shadow-sm);
  overflow: hidden;
}

.rd-usage-records__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-bottom: 1px solid var(--rd-border);
}

.rd-usage-records__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--rd-navy);
}

.rd-usage-records__title i {
  color: var(--rd-text-muted);
}

.rd-usage-records__count {
  font-size: 14px;
  font-weight: 600;
  color: var(--rd-success);
  margin-left: 4px;
}

.rd-usage-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rd-usage-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.rd-usage-table thead th {
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--rd-text-muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--rd-border);
  text-align: left;
  white-space: nowrap;
}

.rd-usage-table thead th:first-child {
  text-align: center;
  width: 56px;
}

.rd-usage-table tbody td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--rd-text);
  border-bottom: 1px solid var(--rd-border);
  vertical-align: middle;
}

.rd-usage-table tbody td:first-child {
  text-align: center;
  color: var(--rd-text-muted);
  font-weight: 600;
}

.rd-usage-table tbody tr:hover {
  background: #fafbfd;
}

.rd-usage-table tbody tr:last-child td {
  border-bottom: none;
}

.rd-usage-empty {
  text-align: center;
  padding: 56px 24px 64px;
}

.rd-usage-empty__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  font-size: 32px;
}

.rd-usage-empty h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--rd-navy);
}

.rd-usage-empty p {
  margin: 0;
  font-size: 14px;
  color: var(--rd-text-muted);
}

.rd-usage-pagination {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--rd-border);
  text-align: center;
}

.rd-usage-pagination .pagination {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.rd-usage-pagination .pagination > li > a,
.rd-usage-pagination .pagination > li > span {
  border-radius: 8px;
  color: var(--rd-navy);
  border-color: var(--rd-border);
  min-width: 36px;
  text-align: center;
}

.rd-usage-pagination .pagination > .active > a,
.rd-usage-pagination .pagination > .active > span {
  background: var(--rd-navy);
  border-color: var(--rd-navy);
}

@media (max-width: 992px) {
  .rd-usage-info-grid,
  .rd-usage-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rd-usage-info-card,
  .rd-usage-stat-card {
    height: auto;
  }
}

@media (max-width: 768px) {
  .rd-usage-header {
    flex-direction: column;
  }

  .rd-usage-header__actions {
    width: 100%;
  }

  .rd-usage-toggle {
    flex: 1;
    justify-content: center;
  }

  .rd-usage-records__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .rd-usage-records__head .rd-export-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .rd-usage-info-grid,
  .rd-usage-stat-grid {
    grid-template-columns: 1fr;
  }

  .rd-usage-info-card,
  .rd-usage-stat-card {
    width: 100%;
    height: auto;
    min-height: 104px;
  }

  .rd-usage-stat-card {
    min-height: 124px;
  }

  .rd-usage-stat-card__value {
    font-size: 24px;
  }

  .rd-usage-header__actions {
    flex-direction: column;
  }

  .rd-usage-toggle {
    width: 100%;
  }
}

/* ===== Complaint Details Page ===== */
.rd-complaint-search {
  flex: 2;
  min-width: 220px;
}

.rd-complaint-table {
  min-width: 720px;
}

.rd-complaint-table thead th:not(:first-child) {
  min-width: 200px;
}

.rd-complaint-cell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rd-complaint-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rd-complaint-item__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--rd-text-muted);
}

.rd-complaint-item__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--rd-navy);
  word-break: break-word;
  line-height: 1.45;
}

.rd-complaint-item__value--muted {
  font-weight: 500;
  color: var(--rd-text);
}

.rd-status--warning {
  background: var(--rd-warning-bg);
  color: var(--rd-warning);
}

@media (max-width: 768px) {
  .rd-complaint-search {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* ===== Change Password Page ===== */
.rd-password-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--rd-white);
  border-radius: var(--rd-radius);
  box-shadow: var(--rd-shadow-sm);
  padding: 32px 36px 28px;
}

.rd-password-field {
  margin-bottom: 22px;
}

.rd-password-field:last-of-type {
  margin-bottom: 0;
}

.rd-password-field > label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--rd-navy);
  margin-bottom: 8px;
}

.rd-password-input {
  position: relative;
}

.rd-password-input__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rd-text-muted);
  font-size: 15px;
  pointer-events: none;
  z-index: 1;
}

.rd-password-input input.form-control {
  height: 48px;
  padding: 12px 44px 12px 42px;
  border-radius: var(--rd-radius-sm);
  font-size: 14px;
  color: var(--rd-navy);
  box-shadow: none;
}

.rd-password-input input.form-control:focus {
  border-color: var(--rd-navy);
  box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.08);
}

.rd-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--rd-text-muted);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.rd-password-toggle:hover {
  color: var(--rd-navy);
  background: var(--rd-bg);
}

.rd-password-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--rd-text-muted);
  line-height: 1.45;
}

.rd-password-hint i {
  margin-top: 2px;
  font-size: 13px;
}

.rd-password-error {
  margin-top: 6px;
  font-size: 13px;
  color: var(--rd-danger);
}

.rd-password-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.rd-password-actions--footer {
  width: 100%;
  margin-top: 0;
  justify-content: flex-end;
}

.rd-password-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--rd-radius-sm);
  background: linear-gradient(135deg, var(--rd-accent) 0%, #c42d42 100%);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(230, 57, 80, 0.25);
}

.rd-password-save:hover {
  opacity: 0.92;
  color: #fff !important;
}

.rd-password-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border: var(--rd-border-width) solid var(--rd-border);
  border-radius: var(--rd-radius-sm);
  background: var(--rd-white);
  color: var(--rd-text-muted) !important;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rd-password-cancel:hover {
  background: var(--rd-bg);
  border-color: #cbd5e1;
  color: var(--rd-navy) !important;
}

@media (max-width: 640px) {
  .rd-password-card {
    padding: 24px 20px 20px;
  }

  .rd-password-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rd-password-actions--footer {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  .rd-password-save,
  .rd-password-cancel {
    width: 100%;
  }

  .rd-password-actions--footer .rd-password-save,
  .rd-password-actions--footer .rd-password-cancel {
    width: auto;
  }
}

/* ===== Edit Profile Page ===== */
.rd-edit-profile {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.rd-edit-profile-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a5f;
  font-size: 14px;
  line-height: 1.5;
}

.rd-edit-profile-note i {
  color: #3b82f6;
  margin-top: 2px;
}

.rd-edit-profile-card {
  background: var(--rd-white);
  border-radius: var(--rd-radius);
  box-shadow: var(--rd-shadow-sm);
  padding: 32px 36px 28px;
}

.rd-profile-photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.rd-profile-photo-upload__preview-wrap {
  position: relative;
  flex: 0 0 140px;
}

.rd-profile-photo-upload__preview {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--rd-white);
  box-shadow: 0 0 0 1px var(--rd-border);
  background: #f8fafc;
  display: block;
}

.rd-profile-photo-upload__camera {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--rd-white);
  background: #3b82f6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  padding: 0;
}

.rd-profile-photo-upload__camera:hover,
.rd-profile-photo-upload__camera:focus {
  background: #2563eb;
  color: #fff;
  outline: none;
  transform: scale(1.04);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.rd-profile-photo-upload__input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.rd-profile-photo-upload__panel {
  flex: 1;
  min-width: 0;
}

.rd-profile-photo-upload__title {
  margin: 0 0 6px;
  font-family: var(--rd-font-menu);
  font-size: 18px;
  font-weight: 700;
  color: var(--rd-navy);
}

.rd-profile-photo-upload__desc {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rd-text-muted);
}

.rd-profile-photo-upload__filename {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rd-navy);
  word-break: break-all;
}

.rd-profile-photo-upload__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--rd-text-muted);
  text-align: center;
}

.rd-profile-photo-upload__hint i {
  margin-right: 4px;
}

.rd-profile-photo-upload__error,
.rd-edit-profile-error {
  margin-top: 8px;
  font-size: 13px;
  color: #dc2626;
}

.rd-profile-photo-upload__clear {
  margin-top: 12px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

.rd-profile-photo-upload__clear:hover {
  color: #dc2626;
}

.rd-edit-profile-divider {
  height: 1px;
  background: var(--rd-border);
  margin: 28px 0;
}

.rd-edit-profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.rd-edit-profile-field {
  display: flex;
  flex-direction: column;
}

.rd-edit-profile-field--full {
  grid-column: 1 / -1;
}

.rd-edit-profile-field > label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--rd-navy);
  margin-bottom: 8px;
}

.rd-edit-profile-field input.form-control,
.rd-edit-profile-field textarea.form-control {
  height: auto;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--rd-radius-sm);
  font-size: 14px;
  color: var(--rd-navy);
  box-shadow: none;
}

.rd-edit-profile-field input.form-control:focus,
.rd-edit-profile-field textarea.form-control:focus {
  border-color: var(--rd-navy);
  box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.08);
}

.rd-edit-profile-field input[disabled],
.rd-edit-profile-field textarea[disabled] {
  background: #f8fafc;
  color: #64748b;
  cursor: not-allowed;
}

.rd-edit-profile-gst-pending {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--rd-navy);
}

.rd-edit-profile-gst-note {
  font-size: 13px;
  line-height: 1.5;
}

.rd-edit-profile .rd-password-actions--footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rd-border);
}

@media (max-width: 768px) {
  .rd-edit-profile-card {
    padding: 24px 20px 20px;
  }

  .rd-profile-photo-upload {
    flex-direction: column;
    text-align: center;
  }

  .rd-profile-photo-upload__panel {
    width: 100%;
  }
}

/* ===== Photo Album Page ===== */
.rd-photo-album {
  max-width: 100%;
}

.rd-photo-device-card {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  background: var(--rd-white);
  border-radius: var(--rd-radius);
  box-shadow: var(--rd-shadow-sm);
  padding: 22px 28px;
  margin-bottom: 24px;
}

.rd-photo-device-card__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1 1 220px;
  min-width: 0;
  padding: 4px 18px;
}

.rd-photo-device-card__item:first-child {
  padding-left: 0;
}

.rd-photo-device-card__divider {
  width: 1px;
  background: var(--rd-border);
  align-self: stretch;
  margin: 4px 0;
}

.rd-photo-device-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eef2f7;
  color: var(--rd-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.rd-photo-device-card__content {
  min-width: 0;
}

.rd-photo-device-card__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--rd-text-muted);
  margin-bottom: 4px;
}

.rd-photo-device-card__value-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rd-photo-device-card__value {
  font-size: 15px;
  font-weight: 700;
  color: var(--rd-navy);
  word-break: break-word;
}

.rd-photo-device-card__value--mono {
  font-family: 'Roboto Mono', ui-monospace, monospace;
  letter-spacing: 0.3px;
}

.rd-photo-device-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.rd-photo-device-card__badge--primary {
  background: var(--rd-success-bg);
  color: #15803d;
}

.rd-photo-device-card__badge--primary::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rd-success);
}

.rd-photo-device-card__badge--secondary {
  background: #fff7ed;
  color: #c2410c;
}

.rd-photo-device-select {
  margin-top: 8px;
  width: 100%;
  max-width: 280px;
  height: 34px;
  border: var(--rd-border-width) solid var(--rd-border);
  border-radius: var(--rd-radius-sm);
  padding: 0 10px;
  font-size: 13px;
  color: var(--rd-navy);
  background: var(--rd-white);
}

.rd-photo-device-select--inline {
  margin-top: 0;
  max-width: none;
  width: auto;
  min-width: 180px;
  height: auto;
  border: none;
  padding: 0 24px 0 0;
  font-size: 15px;
  font-weight: 700;
  background: transparent;
  appearance: auto;
}

.rd-photo-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.rd-photo-toolbar__search {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
}

.rd-photo-toolbar__date {
  position: relative;
  flex: 0 0 auto;
  width: 160px;
  max-width: 160px;
}

.rd-photo-toolbar__search i,
.rd-photo-toolbar__date i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.rd-photo-toolbar__search input,
.rd-photo-toolbar__date input {
  width: 100%;
  height: 44px;
  border: var(--rd-border-width) solid var(--rd-border);
  border-radius: var(--rd-radius-sm);
  padding: 0 14px 0 40px;
  font-size: 14px;
  color: var(--rd-navy);
  background: var(--rd-white);
  box-shadow: none;
}

.rd-photo-toolbar__search input:focus,
.rd-photo-toolbar__date input:focus,
.rd-photo-toolbar__sort select:focus {
  border-color: var(--rd-navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.08);
}

.rd-photo-toolbar__count {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 0 4px;
  margin-right: auto;
}

.rd-photo-toolbar__count-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--rd-text-muted);
}

.rd-photo-toolbar__count strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--rd-navy);
}

.rd-photo-toolbar__sort {
  flex: 0 0 170px;
  min-width: 150px;
}

.rd-photo-toolbar__sort select {
  width: 100%;
  height: 44px;
  border: var(--rd-border-width) solid var(--rd-border);
  border-radius: var(--rd-radius-sm);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rd-navy);
  background: var(--rd-white);
  appearance: auto;
}

.rd-photo-alert {
  display: none;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--rd-radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.rd-photo-alert.is-visible {
  display: block;
}

.rd-photo-alert.is-success {
  background: var(--rd-success-bg);
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.rd-photo-alert.is-error {
  background: var(--rd-danger-bg);
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.rd-photo-grid-wrap {
  margin-bottom: 28px;
}

.rd-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.rd-photo-loading,
.rd-photo-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  background: var(--rd-white);
  border-radius: var(--rd-radius);
  color: var(--rd-text-muted);
}

.rd-photo-loading i,
.rd-photo-empty i {
  font-size: 36px;
  margin-bottom: 12px;
  color: #cbd5e1;
}

.rd-photo-loading span,
.rd-photo-empty h4 {
  display: block;
  margin: 0 0 6px;
  color: var(--rd-navy);
  font-weight: 600;
}

.rd-photo-empty p {
  margin: 0;
  font-size: 14px;
}

.rd-photo-card {
  position: relative;
  border-radius: var(--rd-radius);
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--rd-shadow-sm);
  width: 100%;
  align-self: start;
}

.rd-photo-card__link {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  line-height: 0;
  overflow: hidden;
  background: #0f172a;
}

.rd-photo-card__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.rd-photo-card:hover .rd-photo-card__img {
  opacity: 0.95;
}

.rd-photo-card__date-box {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.3);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rd-photo-card__day {
  font-size: 22px;
  font-weight: 700;
  color: gold;
  line-height: 1;
  font-family: 'Poppins', 'Inter', sans-serif;
}

.rd-photo-card__month-year {
  flex: 1;
  text-align: center;
  color: gold;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.rd-photo-card__time {
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  font-family: 'Roboto Mono', ui-monospace, monospace;
  white-space: nowrap;
}

.rd-photo-card__delete {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--rd-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
  transition: background 0.2s, color 0.2s;
}

.rd-photo-card__delete:hover {
  background: var(--rd-accent);
  color: #fff;
}

.rd-photo-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.rd-photo-pagination__btn,
.rd-photo-pagination__page {
  min-width: 38px;
  height: 38px;
  border: var(--rd-border-width) solid var(--rd-border);
  border-radius: 10px;
  background: var(--rd-white);
  color: var(--rd-navy);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rd-photo-pagination__page.is-active {
  background: var(--rd-accent);
  border-color: var(--rd-accent);
  color: #fff;
}

.rd-photo-pagination__btn:hover:not(:disabled),
.rd-photo-pagination__page:hover:not(.is-active) {
  border-color: var(--rd-navy);
}

.rd-photo-pagination__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rd-photo-pagination__ellipsis {
  color: var(--rd-text-muted);
  padding: 0 4px;
  font-weight: 600;
}

.rd-photo-upload {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #f0f7ff 0%, #eef4fb 100%);
  border-radius: var(--rd-radius);
  box-shadow: var(--rd-shadow-sm);
  padding: 28px 32px;
}

.rd-photo-upload__qr {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.rd-photo-upload__qr-box {
  width: 112px;
  height: 112px;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  background: var(--rd-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--rd-text-muted);
}

.rd-photo-upload__qr-box i {
  font-size: 34px;
  color: #cbd5e1;
}

.rd-photo-upload__qr-box span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.rd-photo-upload__qr-caption {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--rd-navy);
  line-height: 1.45;
}

.rd-photo-upload__content {
  flex: 1 1 320px;
  min-width: 0;
}

.rd-photo-upload__content h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--rd-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rd-photo-upload__content h2 i {
  color: var(--rd-accent);
}

.rd-photo-upload__content p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--rd-text-muted);
}

.rd-photo-upload__content p strong {
  color: var(--rd-navy);
}

.rd-photo-upload__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rd-photo-upload__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--rd-radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rd-photo-upload__btn--whatsapp {
  background: #22c55e;
  color: #fff !important;
  border: 1px solid #22c55e;
}

.rd-photo-upload__btn--whatsapp:hover {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff !important;
  text-decoration: none;
}

.rd-photo-upload__btn--outline {
  background: var(--rd-white);
  color: var(--rd-navy) !important;
  border: var(--rd-border-width) solid var(--rd-border);
}

.rd-photo-upload__btn--outline:hover {
  border-color: var(--rd-navy);
  color: var(--rd-navy) !important;
  text-decoration: none;
}

.rd-photo-upload__help-msg {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--rd-white);
  border: var(--rd-border-width) solid var(--rd-border);
  border-radius: var(--rd-radius-sm);
}

.rd-photo-upload__help-msg[hidden] {
  display: none;
}

.rd-photo-upload__help-msg-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rd-text-muted);
}

.rd-photo-upload__help-msg-text strong {
  color: var(--rd-navy);
}

.rd-photo-upload__help-msg-text i {
  color: var(--rd-accent);
  margin-right: 6px;
}

.rd-photo-modal.modal {
  z-index: 1100 !important;
  background: rgba(7, 21, 40, 0.72);
}

.rd-photo-modal.modal:not(.in) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.rd-photo-modal.modal.in {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.rd-photo-modal:not(.in) .carousel-control {
  display: none !important;
}

.rd-photo-modal.in .carousel-control {
  display: block;
}

.rd-photo-modal .modal-content {
  height: 100%;
  border: none;
  border-radius: 0;
  background: none !important;
  box-shadow: none;
}

.rd-photo-modal .modal-body {
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: none;
  border: none;
}

.rd-photo-modal .modal-dialog {
  position: relative;
  z-index: 1;
  margin: 2% auto;
}

.rd-photo-modal .carousel-inner,
.rd-photo-modal .carousel-inner .item {
  height: 100%;
  min-height: 0;
}

.rd-photo-modal .carousel-inner .item img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .rd-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rd-photo-device-card__divider {
    display: none;
  }

  .rd-photo-device-card__item {
    padding: 8px 0;
    border-bottom: 1px solid var(--rd-border);
  }

  .rd-photo-device-card__item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .rd-photo-grid {
    grid-template-columns: 1fr;
  }

  .rd-photo-toolbar__sort {
    flex: 1 1 100%;
  }

  .rd-photo-upload {
    padding: 22px 20px;
  }

  .rd-photo-upload__qr {
    width: 100%;
  }
}

