@-webkit-keyframes fieldAppear {
  from {
    opacity: 0;
    -webkit-transform: translateY(0.625rem);
            transform: translateY(0.625rem);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes fieldAppear {
  from {
    opacity: 0;
    -webkit-transform: translateY(0.625rem);
            transform: translateY(0.625rem);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@-webkit-keyframes pulse-ring {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 0.8;
  }
  100% {
    -webkit-transform: scale(2.5);
            transform: scale(2.5);
    opacity: 0;
  }
}
@keyframes pulse-ring {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 0.8;
  }
  100% {
    -webkit-transform: scale(2.5);
            transform: scale(2.5);
    opacity: 0;
  }
}
body.no-scroll {
  overflow: hidden !important;
}

.ap-hidden-input {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none;
}

.ap-spin-icon {
  width: 32px !important;
  height: 32px !important;
  background-color: #4f46e5 !important;
  -webkit-animation: ap-spin 1s linear infinite;
          animation: ap-spin 1s linear infinite;
}

@-webkit-keyframes ap-spin {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes ap-spin {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
.ap-btn-primary {
  background: #4f46e5;
  color: #fff;
  border: none;
  height: 52px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
          box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.ap-btn-primary:hover:not(:disabled) {
  background: #4338ca;
  -webkit-transform: translateY(-2px);
      -ms-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 8px 16px rgba(79, 70, 229, 0.4);
          box-shadow: 0 8px 16px rgba(79, 70, 229, 0.4);
}
.ap-btn-primary.full-width {
  width: 100%;
}
.ap-btn-primary.is-disabled, .ap-btn-primary:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none;
  -webkit-transform: none !important;
      -ms-transform: none !important;
          transform: none !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}

#affiliate-pro-dashboard {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: #f3f5fc;
  padding: 20px 16px 60px;
  font-family: "Inter", system-ui, sans-serif;
  color: #0f172a;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard {
    padding: 40px 24px 80px 129px !important;
  }
}
@media (min-width: 1601px) {
  #affiliate-pro-dashboard {
    padding-left: 24px !important;
  }
}
#affiliate-pro-dashboard * {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
#affiliate-pro-dashboard .ap-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  margin-bottom: 32px;
  gap: 20px;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-header {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin-bottom: 40px;
  }
}
#affiliate-pro-dashboard .ap-header .ap-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-header .ap-title {
    font-size: 36px;
    letter-spacing: -1px;
  }
}
#affiliate-pro-dashboard .ap-header .ap-subtitle {
  font-size: 14px;
  color: #64748b;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-header .ap-subtitle {
    font-size: 16px;
  }
}
#affiliate-pro-dashboard .ap-header .ap-tier-badge {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  padding: 10px 20px;
  border-radius: 100px;
  color: #fff;
  -webkit-box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
          box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}
#affiliate-pro-dashboard .ap-header .ap-tier-badge .tier-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: #fbbf24;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
#affiliate-pro-dashboard .ap-header .ap-tier-badge .tier-icon .icon-mask {
  width: 18px;
  height: 18px;
  background-color: currentColor;
}
#affiliate-pro-dashboard .ap-header .ap-tier-badge .tier-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
#affiliate-pro-dashboard .ap-header .ap-tier-badge .tier-name {
  font-size: 14px;
  font-weight: 700;
}
#affiliate-pro-dashboard .ap-header .ap-tier-badge .tier-rate {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
}
#affiliate-pro-dashboard .ap-bento-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-bento-grid {
    gap: 24px;
    margin-bottom: 32px;
  }
}
@media (min-width: 992px) {
  #affiliate-pro-dashboard .ap-bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  #affiliate-pro-dashboard .ap-bento-grid .ap-finance-hub {
    grid-column: span 2;
  }
  #affiliate-pro-dashboard .ap-bento-grid .ap-stats-mini {
    grid-column: span 1;
  }
  #affiliate-pro-dashboard .ap-bento-grid .ap-tools-hub {
    grid-column: span 3;
  }
}
#affiliate-pro-dashboard .ap-bento-grid .ap-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 20px;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-bento-grid .ap-card {
    border-radius: 24px;
    padding: 32px;
  }
}
#affiliate-pro-dashboard .ap-bento-grid .ap-card:hover {
  -webkit-transform: translateY(-2px);
      -ms-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
          box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}
#affiliate-pro-dashboard .ap-finance-hub {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  background: linear-gradient(120deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}
#affiliate-pro-dashboard .ap-finance-hub::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, rgba(79, 70, 229, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
#affiliate-pro-dashboard .ap-finance-hub .ap-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
}
#affiliate-pro-dashboard .ap-finance-hub .ap-balance-massive {
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
  margin: 8px 0;
  line-height: 1;
  letter-spacing: -1px;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-finance-hub .ap-balance-massive {
    font-size: 56px;
    margin: 8px 0 12px;
    letter-spacing: -2px;
  }
}
#affiliate-pro-dashboard .ap-finance-hub .ap-balance-massive .currency {
  font-size: 24px;
  color: #64748b;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-finance-hub .ap-balance-massive .currency {
    font-size: 32px;
  }
}
#affiliate-pro-dashboard .ap-finance-hub .ap-hold-info {
  font-size: 13px;
  color: #64748b;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
#affiliate-pro-dashboard .ap-finance-hub .ap-hold-info b {
  color: #0f172a;
}
#affiliate-pro-dashboard .ap-finance-hub .finance-bottom {
  margin-top: 32px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 12px;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-finance-hub .finance-bottom {
    margin-top: 40px;
  }
}
#affiliate-pro-dashboard .ap-finance-hub .ap-micro-text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}
#affiliate-pro-dashboard .ap-finance-hub .ap-micro-text .icon-mask {
  width: 14px;
  height: 14px;
  background-color: currentColor;
}
#affiliate-pro-dashboard .ap-stats-mini {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 20px;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-stats-mini {
    gap: 24px;
  }
}
#affiliate-pro-dashboard .ap-stats-mini .stat-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
}
#affiliate-pro-dashboard .ap-stats-mini .stat-row .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
#affiliate-pro-dashboard .ap-stats-mini .stat-row .stat-icon .icon-mask {
  width: 22px;
  height: 22px;
  background-color: currentColor;
}
#affiliate-pro-dashboard .ap-stats-mini .stat-row .bg-green-light {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
#affiliate-pro-dashboard .ap-stats-mini .stat-row .bg-blue-light {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
}
#affiliate-pro-dashboard .ap-stats-mini .stat-row .stat-data {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 2px;
}
#affiliate-pro-dashboard .ap-stats-mini .stat-row .stat-value {
  font-size: 18px;
  font-weight: 800;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-stats-mini .stat-row .stat-value {
    font-size: 20px;
  }
}
#affiliate-pro-dashboard .ap-stats-mini .stat-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  width: 100%;
}
#affiliate-pro-dashboard .ap-tools-hub .ap-card-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 24px;
  width: 100%;
}
#affiliate-pro-dashboard .ap-tools-hub .ap-card-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}
#affiliate-pro-dashboard .ap-tools-hub .ap-card-header .ap-btn-text {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #4f46e5;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  white-space: nowrap;
}
#affiliate-pro-dashboard .ap-tools-hub .ap-card-header .ap-btn-text:hover {
  color: #4338ca;
  text-decoration: underline;
  -webkit-transform: translateX(3px);
      -ms-transform: translateX(3px);
          transform: translateX(3px);
}
#affiliate-pro-dashboard .ap-tools-hub .ap-smart-inputs {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-tools-hub .ap-smart-inputs {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
#affiliate-pro-dashboard .ap-tools-hub .ap-smart-item .input-title {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 600;
}
#affiliate-pro-dashboard .ap-tools-hub .ap-smart-item .copy-input__box {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  height: 48px;
  padding: 0 8px 0 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  position: relative;
}
#affiliate-pro-dashboard .ap-tools-hub .ap-smart-item .copy-input__box:hover {
  border-color: #4f46e5;
  background: #fff;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
#affiliate-pro-dashboard .ap-tools-hub .ap-smart-item .copy-input__box .copy-input__val {
  font-family: monospace;
  font-size: 14px;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
#affiliate-pro-dashboard .ap-tools-hub .ap-smart-item .copy-input__box.promo-accent-box {
  background: rgba(79, 70, 229, 0.04);
  border-color: rgba(79, 70, 229, 0.2);
}
#affiliate-pro-dashboard .ap-tools-hub .ap-smart-item .copy-input__box.promo-accent-box .promo-text-val {
  font-size: 18px;
  font-weight: 800;
  color: #4f46e5;
  letter-spacing: 1px;
}
#affiliate-pro-dashboard .ap-tools-hub .ap-smart-item .copy-input__box.promo-accent-box:hover {
  background: rgba(79, 70, 229, 0.06);
  border-color: #4f46e5;
}
#affiliate-pro-dashboard .ap-tools-hub .ap-smart-item .ap-copy-trigger {
  width: 36px;
  height: 36px;
  border: none;
  background: #fff;
  border-radius: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  color: #0f172a;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  margin-left: 12px;
}
#affiliate-pro-dashboard .ap-tools-hub .ap-smart-item .ap-copy-trigger .icon-mask {
  width: 16px;
  height: 16px;
}
#affiliate-pro-dashboard .ap-tools-hub .ap-smart-item .ap-copy-trigger:hover {
  background: #4f46e5;
  color: #fff;
  -webkit-transform: translateY(-1px);
      -ms-transform: translateY(-1px);
          transform: translateY(-1px);
  -webkit-box-shadow: 0 4px 8px rgba(79, 70, 229, 0.2);
          box-shadow: 0 4px 8px rgba(79, 70, 229, 0.2);
}
#affiliate-pro-dashboard .ap-tools-hub .ap-smart-item .ap-copy-trigger:active {
  -webkit-transform: translateY(0px);
      -ms-transform: translateY(0px);
          transform: translateY(0px);
  background: #4338ca;
}
#affiliate-pro-dashboard .ap-tools-hub .ap-smart-item .ap-copy-trigger.is-copied {
  background: #10b981 !important;
  color: #fff !important;
}
#affiliate-pro-dashboard .ap-tools-hub .ap-smart-item .ap-input-note {
  font-size: 11px;
  color: #10b981;
  margin-top: 8px;
  font-weight: 600;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
}
#affiliate-pro-dashboard .ap-tools-hub .ap-smart-item .ap-input-note .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}
#affiliate-pro-dashboard .ap-activity-section {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 20px;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-activity-section {
    border-radius: 24px;
    padding: 32px;
  }
}
#affiliate-pro-dashboard .ap-activity-section .activity-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 24px;
}
#affiliate-pro-dashboard .ap-activity-section .activity-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-activity-section .activity-header h3 {
    font-size: 20px;
  }
}
#affiliate-pro-dashboard .ap-activity-section .activity-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
  gap: 12px;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-activity-section .activity-item {
    padding: 20px 0;
    gap: 16px;
  }
}
#affiliate-pro-dashboard .ap-activity-section .activity-item:last-child {
  border-bottom: none;
}
#affiliate-pro-dashboard .ap-activity-section .activity-item .ac-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-activity-section .activity-item .ac-icon {
    width: 40px;
    height: 40px;
  }
}
#affiliate-pro-dashboard .ap-activity-section .activity-item .ac-icon .icon-mask {
  width: 18px;
  height: 18px;
  background-color: currentColor;
}
#affiliate-pro-dashboard .ap-activity-section .activity-item.income-type .ac-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
#affiliate-pro-dashboard .ap-activity-section .activity-item.income-type .amount-val {
  color: #10b981;
}
#affiliate-pro-dashboard .ap-activity-section .activity-item.payout-type .ac-icon {
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
}
#affiliate-pro-dashboard .ap-activity-section .activity-item.payout-type .amount-val {
  color: #0f172a;
  font-weight: 700;
}
#affiliate-pro-dashboard .ap-activity-section .activity-item .ac-details {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}
#affiliate-pro-dashboard .ap-activity-section .activity-item .ac-details .ac-user {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-activity-section .activity-item .ac-details .ac-user {
    font-size: 15px;
  }
}
#affiliate-pro-dashboard .ap-activity-section .activity-item .ac-details .ac-meta {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#affiliate-pro-dashboard .ap-activity-section .activity-item .ac-amount {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  gap: 4px;
}
#affiliate-pro-dashboard .ap-activity-section .activity-item .ac-amount .amount-val {
  font-size: 14px;
  font-weight: 700;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-activity-section .activity-item .ac-amount .amount-val {
    font-size: 16px;
  }
}
#affiliate-pro-dashboard .ap-activity-section .activity-item .ac-amount .ac-status {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
#affiliate-pro-dashboard .ap-activity-section .activity-item .ac-amount .ac-status.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
#affiliate-pro-dashboard .ap-activity-section .ap-empty-state {
  text-align: center;
  padding: 40px 0;
}
#affiliate-pro-dashboard .ap-activity-section .ap-empty-state .empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: #f1f5f9;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: #64748b;
}
#affiliate-pro-dashboard .ap-activity-section .ap-empty-state .empty-icon .icon-mask {
  width: 28px;
  height: 28px;
  background-color: currentColor;
}
#affiliate-pro-dashboard .ap-activity-section .ap-empty-state h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}
#affiliate-pro-dashboard .ap-activity-section .ap-empty-state p {
  font-size: 13px;
  color: #64748b;
}
#affiliate-pro-dashboard .ap-badge-hint {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  background: rgba(245, 158, 11, 0.1);
  color: #c57f08;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-badge-hint {
    font-size: 11px;
    padding: 2px 8px;
  }
}
#affiliate-pro-dashboard .ap-badge-hint .icon-mask {
  width: 12px;
  height: 12px;
  background-color: currentColor;
}
#affiliate-pro-dashboard .ap-badge-hint.blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  margin-top: 4px;
}
#affiliate-pro-dashboard .ap-badge-hint.green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
#affiliate-pro-dashboard .ap-rules-section {
  margin-top: 32px;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-rules-section {
    margin-top: 40px;
  }
}
#affiliate-pro-dashboard .ap-rules-section .section-header {
  margin-bottom: 20px;
}
#affiliate-pro-dashboard .ap-rules-section .section-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-rules-section .section-header h3 {
    font-size: 20px;
  }
}
#affiliate-pro-dashboard .ap-rules-section .section-header p {
  font-size: 13px;
  color: #64748b;
}
#affiliate-pro-dashboard .ap-rules-section .ap-rules-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  #affiliate-pro-dashboard .ap-rules-section .ap-rules-grid {
    gap: 24px;
  }
}
@media (min-width: 992px) {
  #affiliate-pro-dashboard .ap-rules-section .ap-rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
#affiliate-pro-dashboard .ap-rules-section .ap-rules-grid .rule-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
#affiliate-pro-dashboard .ap-rules-section .ap-rules-grid .rule-card .rc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 16px;
}
#affiliate-pro-dashboard .ap-rules-section .ap-rules-grid .rule-card .rc-icon .icon-mask {
  width: 20px;
  height: 20px;
  background-color: currentColor;
}
#affiliate-pro-dashboard .ap-rules-section .ap-rules-grid .rule-card .rc-icon.bg-green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
#affiliate-pro-dashboard .ap-rules-section .ap-rules-grid .rule-card .rc-icon.bg-red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
#affiliate-pro-dashboard .ap-rules-section .ap-rules-grid .rule-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
}
#affiliate-pro-dashboard .ap-rules-section .ap-rules-grid .rule-card .rule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 10px;
}
#affiliate-pro-dashboard .ap-rules-section .ap-rules-grid .rule-card .rule-list li {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}
#affiliate-pro-dashboard .ap-rules-section .ap-rules-grid .rule-card .rule-list li b {
  color: #0f172a;
}
#affiliate-pro-dashboard .ap-rules-section .ap-rules-grid .rule-card .rule-list li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  background-size: contain;
  background-repeat: no-repeat;
}
#affiliate-pro-dashboard .ap-rules-section .ap-rules-grid .rule-card .rule-list.green li::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}
#affiliate-pro-dashboard .ap-rules-section .ap-rules-grid .rule-card .rule-list.red li::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
  top: 4px;
}
#affiliate-pro-dashboard .ap-rules-section .ap-rules-grid .rule-card .rc-warning {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(239, 68, 68, 0.3);
  font-size: 12px;
  font-weight: 600;
  color: #ef4444;
}
#affiliate-pro-dashboard .ap-rules-section .ap-rules-grid .rule-card.alert-card {
  border-color: rgba(239, 68, 68, 0.2);
  background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(rgba(239, 68, 68, 0.02)));
  background: linear-gradient(to bottom, #ffffff, rgba(239, 68, 68, 0.02));
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ap-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.ap-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.ap-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 9999;
  background: #ffffff;
  -webkit-transform: translateX(100%);
      -ms-transform: translateX(100%);
          transform: translateX(100%);
  -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: -webkit-transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), -webkit-transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
          box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}
@media (min-width: 576px) {
  .ap-drawer {
    width: 400px;
  }
}
.ap-drawer.open {
  -webkit-transform: translateX(0);
      -ms-transform: translateX(0);
          transform: translateX(0);
}
.ap-drawer .drawer-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.ap-drawer .drawer-header h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
}
.ap-drawer .drawer-header .close-drawer {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  color: #64748b;
  font-size: 24px;
  -webkit-transition: 0.2s;
  transition: 0.2s;
}
.ap-drawer .drawer-header .close-drawer:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.ap-drawer .drawer-body {
  padding: 20px;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
}
.ap-drawer .drawer-balance-widget {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), transparent);
  border: 1px dashed rgba(79, 70, 229, 0.3);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.ap-drawer .drawer-balance-widget .db-label {
  font-size: 11px;
  font-weight: 700;
  color: #4f46e5;
  text-transform: uppercase;
}
.ap-drawer .drawer-balance-widget .db-val {
  font-size: 24px;
  font-weight: 800;
}
@media (min-width: 768px) {
  .ap-drawer .drawer-balance-widget .db-val {
    font-size: 28px;
  }
}
.ap-drawer .drawer-top-alert {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 12px;
  border-radius: 10px;
  color: #d97706;
  font-size: 13px;
}
.ap-drawer .drawer-top-alert .icon-mask {
  width: 18px;
  height: 18px;
  background-color: #f59e0b;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.ap-drawer .ap-form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
}
.ap-drawer .ap-form .drawer-field {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.ap-drawer .ap-form .drawer-field label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
}
.ap-drawer .ap-form .ap-input, .ap-drawer .ap-form .ap-native-select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 0 16px;
  font-size: 15px;
  background: #f8fafc;
  outline: none;
}
.ap-drawer .ap-form .ap-input:focus, .ap-drawer .ap-form .ap-native-select:focus {
  background: #fff;
  border-color: #4f46e5;
}
.ap-drawer .ap-form .ap-input:disabled, .ap-drawer .ap-form .ap-native-select:disabled {
  background: #e2e8f0;
  color: #94a3b8;
}
.ap-drawer .ap-form .drawer-amount-info .alert-error, .ap-drawer .ap-form .drawer-amount-info .alert-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  padding: 12px;
  border-radius: 8px;
}
.ap-drawer .ap-form .drawer-amount-info .alert-error .icon-mask, .ap-drawer .ap-form .drawer-amount-info .alert-info .icon-mask {
  width: 16px;
  height: 16px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  background-color: currentColor;
}
.ap-drawer .ap-form .drawer-amount-info .alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.ap-drawer .ap-form .drawer-amount-info .alert-info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}
.ap-drawer .drawer-tips {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  margin-top: auto;
}
.ap-drawer .drawer-tips ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}
.ap-drawer .drawer-tips ul li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}
.ap-drawer .drawer-tips ul li .icon-mask {
  width: 14px;
  height: 14px;
  background-color: #94a3b8;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  margin-top: 2px;
}
.ap-drawer .drawer-tips .tips-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}
.ap-drawer .drawer-tips .tips-header h4 {
  font-size: 14px;
  margin: 0;
}
.ap-drawer .drawer-tips .tips-header .icon-mask {
  width: 18px;
  height: 18px;
  background-color: #3b82f6;
}
.ap-drawer .drawer-support {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}
.ap-drawer .drawer-support .ds-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(79, 70, 229, 0.1);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.ap-drawer .drawer-support .ds-icon .icon-mask {
  width: 18px;
  height: 18px;
  background-color: #4f46e5;
}
.ap-drawer .drawer-support .ds-text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.ap-drawer .drawer-support .ds-text span {
  font-size: 12px;
  color: #64748b;
}
.ap-drawer .drawer-support .ds-text a {
  font-size: 13px;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
}

.ap-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
}
.ap-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.ap-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -45%) scale(0.95);
      -ms-transform: translate(-50%, -45%) scale(0.95);
          transform: translate(-50%, -45%) scale(0.95);
  width: 95%;
  max-width: 1000px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 20px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
          box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.ap-modal.open {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translate(-50%, -50%) scale(1);
      -ms-transform: translate(-50%, -50%) scale(1);
          transform: translate(-50%, -50%) scale(1);
}
.ap-modal .ap-modal-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.ap-modal .ap-modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
}
.ap-modal .ap-modal-header .close-modal {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  color: #64748b;
  font-size: 24px;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.ap-modal .ap-modal-header .close-modal:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.ap-modal .ap-modal-header .close-modal .icon-mask {
  width: 16px;
  height: 16px;
}
.ap-modal .ap-modal-body {
  padding: 24px;
  overflow-y: auto;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.ap-modal .ap-modal-subtitle {
  margin-top: 0;
  margin-bottom: 24px;
  color: #64748b;
  font-size: 14px;
}

.ap-materials-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .ap-materials-layout {
    grid-template-columns: 350px 1fr;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: start;
  }
}

.ap-preview-card {
  position: sticky;
  top: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
}
.ap-preview-card .preview-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 16px;
}
.ap-preview-card .preview-size {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  font-family: monospace;
}
.ap-preview-card .preview-stage {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: relative;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 20px;
  min-height: 200px;
}
.ap-preview-card .preview-stage img {
  max-width: 100%;
  max-height: 300px;
  -o-object-fit: contain;
     object-fit: contain;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}
.ap-preview-card .preview-stage .preview-loader {
  position: absolute;
  z-index: 2;
}

#promo-modal .ap-tabs-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
}
#promo-modal .ap-tab {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  -webkit-transition: 0.2s;
  transition: 0.2s;
}
#promo-modal .ap-tab.active {
  background: #fff;
  color: #0f172a;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
#promo-modal .ap-subtabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-bottom: 16px;
}
#promo-modal .ap-subtabs .ap-subtab {
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  -webkit-transition: 0.2s;
  transition: 0.2s;
}
#promo-modal .ap-subtabs .ap-subtab.active {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.3);
}
#promo-modal .ap-banner-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
#promo-modal .ap-banner-row:last-child {
  border-bottom: none;
}
#promo-modal .ap-banner-row .banner-res {
  width: 80px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  font-family: monospace;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
#promo-modal .ap-banner-row .smart-input-wrapper {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 4px;
}
#promo-modal .ap-banner-row .smart-input-wrapper input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  border: none;
  background: transparent;
  padding: 0 8px;
  font-size: 13px;
  color: #0f172a;
  outline: none;
  font-family: monospace;
}
#promo-modal .ap-banner-row .smart-input-wrapper .copy-trigger {
  width: 32px;
  height: 32px;
  border: none;
  background: #fff;
  border-radius: 6px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  color: #0f172a;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  -webkit-transition: 0.2s;
  transition: 0.2s;
}
#promo-modal .ap-banner-row .smart-input-wrapper .copy-trigger .icon-mask {
  width: 14px;
  height: 14px;
}
#promo-modal .ap-banner-row .smart-input-wrapper .copy-trigger:hover {
  background: #4f46e5;
  color: #fff;
}
#promo-modal .ap-banner-row .smart-input-wrapper .copy-trigger.is-copied {
  background: #10b981 !important;
  color: #fff !important;
}
#promo-modal .ap-banner-row .ap-btn-icon-outline {
  width: 42px;
  height: 42px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  color: #64748b;
  -webkit-transition: 0.2s;
  transition: 0.2s;
}
#promo-modal .ap-banner-row .ap-btn-icon-outline:hover {
  background: #f8fafc;
  color: #4f46e5;
  border-color: #4f46e5;
}
#promo-modal .ap-banner-row .ap-btn-icon-outline .icon-mask {
  width: 18px;
  height: 18px;
  background-color: currentColor;
}