/*
 * DeepDrop customer editorial layer.
 * Shared by every customer template after its page-specific stylesheets.
 * Keeps existing content and interactions while giving the site one visual voice.
 */
body.ah-body.ah-customer-system {
  --tp-editorial-violet: #d2d2d7;
  --tp-editorial-violet-line: rgba(255, 255, 255, 0.18);
  --tp-editorial-rule: rgba(255, 255, 255, 0.14);
  --tp-editorial-surface: linear-gradient(180deg, #202024, #171719);
  --tp-surface-card: #1c1c1e;
  --tp-surface-elevated: rgba(44, 44, 48, 0.98);
  --tp-text-primary: #f5f5f7;
  --tp-text-secondary: #b2b2b7;
  --tp-text-muted: #86868b;
  --ah-surface: #1c1c1e;
  --ah-panel: #202024;
  --ah-paper: #f5f5f7;
  --ah-soft: #b2b2b7;
  --ah-muted: #86868b;
  --ah-line: rgba(255, 255, 255, 0.14);
  --ah-control-border: rgba(255, 255, 255, 0.18);
  --ah-action: #f2f0e8;
  --ah-action-fill: #f2f0e8;
  --ah-action-hover: #fff;
  --ah-action-fill-hover: #fff;
  /* Keep the site-selected CCTV image, but quiet its saturation under content. */
  --ah-camera-opacity: 0.48;
  --ah-camera-filter: brightness(0.78) saturate(0.72) contrast(1.04);
}

/* One quiet editorial treatment for the shared customer frame. */
.ah-customer-system .ah-header {
  border-radius: 16px;
  border-color: var(--tp-editorial-violet-line);
  background: linear-gradient(180deg, rgba(25, 25, 30, 0.97), rgba(12, 13, 17, 0.97));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.ah-customer-system .ah-header:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.ah-customer-system.ah-body .ah-main :is(h1, h2, h3, h4) {
  line-height: 1.22;
  text-wrap: balance;
}

.ah-customer-system.ah-body .ah-main h1 {
  font-weight: 800;
  letter-spacing: -0.018em;
}

.ah-customer-system.ah-body .ah-main :is(
  .ah-section-head h1,
  .ah-articles-heading h1,
  .ah-article-heading h1,
  .ah-ticket-page > h1,
  .ah-checkout > h1,
  .ah-customer-page > h1,
  .mp-page-title,
  .tp-commerce-main-title,
  .tp-events-main-title,
  .tp-artists-main-title
) {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.018em;
}

.ah-customer-system.ah-body .ah-main :is(
  .ah-section-head,
  .ah-articles-heading,
  .tp-commerce-header,
  .tp-events-header-chassis,
  .tp-artists-header-chassis,
  .ah-booking-header,
  .ah-profile-panel-heading,
  .ah-sec-header
) {
  border-color: var(--tp-editorial-rule);
}

.ah-customer-system.ah-body .ah-main :is(
  .ah-section-head h1,
  .ah-articles-heading h1,
  .tp-commerce-main-title,
  .tp-events-main-title,
  .tp-artists-main-title
)::after {
  content: "";
  display: block;
  width: clamp(44px, 6vw, 76px);
  height: 2px;
  margin-top: 0.34em;
  background: var(--tp-editorial-violet);
  opacity: 0.82;
}

/* Editorial surfaces connect browsing, commerce, account, and transaction pages. */
.ah-customer-system.ah-body .ah-main :is(
  .ah-event-card,
  .ah-home-event-card,
  .ah-artist-card,
  .ah-article-card,
  .ah-auth,
  .ah-sec-panel,
  .ah-summary,
  .ah-ticket-option,
  .ah-owned-ticket,
  .ah-ticket-detail,
  .ah-filters,
  .mp-section,
  .mp-upload-zone,
  .ah-article-images-manager,
  .ah-portfolio-card,
  .tp-merch-card,
  .tp-shop-card,
  .tp-cart-section,
  .tp-cart-card,
  .tp-checkout-card,
  .ah-booking-master-chassis,
  .ah-booking-event,
  .ah-profile-panel,
  .ah-wallet-card,
  .ah-settings-group,
  .ah-notif-panel,
  .ah-financial-card,
  .ah-terms-section-card,
  .ah-privacy-section-card,
  .ah-faq-inset-group,
  .ah-detail-card,
  .ah-cargo-item-card,
  .ah-bento-card,
  .ah-sidebar-bento-card,
  .ah-ma-card,
  .ah-refund-ticket-card,
  .ah-transfer-empty-card,
  .tp-wishlist-card,
  .tp-return-card-panel,
  .tp-cross-sell-item-card,
  .ah-card-sub
) {
  border-color: var(--tp-border-subtle, rgba(255, 255, 255, 0.08));
  border-top-color: var(--tp-editorial-violet-line);
  box-shadow: var(--ah-shadow-card, 0 10px 28px -6px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08));
}

.ah-customer-system.ah-body .ah-main :is(
  .ah-event-card,
  .ah-artist-card,
  .ah-article-card,
  .ah-portfolio-card,
  .tp-merch-card,
  .tp-shop-card,
  .tp-cart-card,
  .tp-cart-section,
  .tp-checkout-card,
  .ah-booking-master-chassis,
  .ah-profile-panel,
  .ah-wallet-card,
  .ah-settings-group,
  .ah-terms-section-card,
  .ah-privacy-section-card,
  .ah-faq-inset-group
) {
  background: var(--tp-editorial-surface);
}

/* Product and editorial image frames keep their source colors and gain a quiet edge. */
.ah-customer-system.ah-body .ah-main :is(
  .tp-hero-frame,
  .tp-spotlight-poster-link,
  .tp-merch-visual-frame,
  .tp-shop-image-frame,
  .tp-artist-visual-stage,
  .ah-event-art,
  .ah-detail-cover,
  .ah-detail-poster,
  .ah-article-card-cover,
  .ah-artist-list-image-link,
  .tp-gallery-image-frame
) {
  box-shadow: inset 0 0 0 1px rgba(242, 240, 232, 0.12), 0 12px 28px rgba(0, 0, 0, 0.28);
}

.ah-customer-system.ah-body .ah-main :is(.tp-section-header, .ah-section-head, .ah-articles-heading) {
  position: relative;
}

.ah-customer-system.ah-body .ah-main :is(.tp-section-header, .ah-section-head, .ah-articles-heading)::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -1px;
  width: clamp(42px, 7vw, 76px);
  height: 2px;
  background: var(--tp-editorial-violet);
  opacity: 0.75;
}

.ah-customer-system.ah-body .ah-main :is(.tp-merch-card, .tp-shop-card, .ah-event-card, .ah-artist-card, .ah-article-card, .ah-portfolio-card) {
  border-radius: 14px;
}

.ah-customer-system.ah-body .ah-main :is(.tp-merch-visual-frame, .tp-shop-image-frame, .ah-event-art, .ah-article-card-cover, .ah-artist-list-image-link) {
  border-radius: 10px;
}

.ah-customer-system.ah-body .ah-main :is(.tp-story-card, .tp-featured-spotlight, .ah-home-featured-event) {
  border-color: var(--tp-editorial-violet-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(242, 240, 232, 0.08);
}

.ah-customer-system .ah-header .ah-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--tp-editorial-violet);
}

.ah-customer-system .ah-footer {
  border-top-color: var(--tp-editorial-violet-line) !important;
}

.ah-customer-system .ah-footer-label {
  letter-spacing: 0.08em;
}

.ah-customer-system .ah-mobile-tab-bar {
  border-top-color: var(--tp-editorial-violet-line);
}

.ah-customer-system.ah-body .ah-main :is(a, button, input, select, textarea, summary):focus-visible {
  outline-color: #f5f5f7;
}

@media (max-width: 767px) {
  .ah-customer-system .ah-header {
    border-radius: 14px;
  }

  .ah-customer-system.ah-body .ah-main :is(
    .ah-section-head h1,
    .ah-articles-heading h1,
    .ah-article-heading h1,
    .ah-ticket-page > h1,
    .ah-checkout > h1,
    .ah-customer-page > h1,
    .mp-page-title,
    .tp-commerce-main-title,
    .tp-events-main-title,
    .tp-artists-main-title
  ) {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
  }
}

@media (prefers-contrast: more) {
  .ah-customer-system {
    --tp-editorial-violet-line: rgba(255, 255, 255, 0.64);
    --tp-editorial-rule: rgba(255, 255, 255, 0.34);
  }

  .ah-customer-system .ah-header,
  .ah-customer-system.ah-body .ah-main :is(.ah-event-card, .ah-artist-card, .ah-article-card, .tp-merch-card, .tp-shop-card) {
    border-color: var(--tp-editorial-violet-line);
  }
}

@media (forced-colors: active) {
  .ah-customer-system.ah-body .ah-main :is(
    .ah-event-card,
    .ah-artist-card,
    .ah-article-card,
    .ah-portfolio-card,
    .tp-merch-card,
    .tp-shop-card,
    .tp-cart-card,
    .tp-cart-section,
    .tp-checkout-card,
    .ah-booking-master-chassis,
    .ah-profile-panel,
    .ah-wallet-card,
    .ah-settings-group,
    .ah-terms-section-card,
    .ah-privacy-section-card,
    .ah-faq-inset-group
  ) {
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-customer-system .ah-header,
  .ah-customer-system.ah-body .ah-main :is(.ah-event-card, .ah-artist-card, .ah-article-card, .tp-merch-card, .tp-shop-card) {
    transition-duration: 0.01ms;
  }
}
