.team-tile {
    position: relative;
    background: #ededed;    
    border: 2px solid #272626;
    border-radius: 25px;
    padding: 12px 12px 10px;
    z-index: 3;
    height: 100%;
    -webkit-transition: -webkit-transform .25s cubic-bezier(.39,.575,.565,1);
    transition: -webkit-transform .25s cubic-bezier(.39,.575,.565,1);
    transition: transform .25s cubic-bezier(.39,.575,.565,1);
    transition: transform .25s cubic-bezier(.39,.575,.565,1),-webkit-transform .25s cubic-bezier(.39,.575,.565,1);
    cursor: pointer;
}

.team-tile .btn-wrapper svg {
    width: 1.5046296296vw;
    margin-left: 1px
}


.team-grid {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-evenly
}

.tile-shadow {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    border: 2px solid #000;
    background-color: #FF80A6;
    border-radius: 25px;
    z-index: 1;
    -webkit-transition: transform .21s cubic-bezier(.39,.575,.565,1);
    transition: transform .21s cubic-bezier(.39,.575,.565,1)
}

.team-tile-wrapper {
    position: relative;
    width: calc(20% - 21px);
    margin-bottom: 3px;
    -webkit-transition: -webkit-transform .23s cubic-bezier(.39,.575,.565,1);
    transition: -webkit-transform .23s cubic-bezier(.39,.575,.565,1);
    transition: transform .23s cubic-bezier(.39,.575,.565,1);
    transition: transform .23s cubic-bezier(.39,.575,.565,1),-webkit-transform .23s cubic-bezier(.39,.575,.565,1);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-perspective: 2200px;
    perspective: 2200px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0)
}

.team-tile-wrapper.filler {
    height: 0;
    padding: 0;
    border: none;
    opacity: 0;
    pointer-events: none;
    margin: 0
}



@media screen and (max-width: 1595.0769230769px) {
    .team-tile .btn-wrapper svg {
        width:24px
    }
}



.team-tile .portrait {
    border: 2px solid #000;
    border-radius: 15px;
    margin-bottom: 1.8518518519vw;
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: relative;

}



.portrait-img {
    width: 100%;
    height: 230px;
    -o-object-fit: cover;
    object-fit: cover;
}







.team-tile .bottom,.team-tile .info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: -webkit-fill-available;
}

.team-tile .info {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    text-transform: uppercase
}



@media (max-width: 1200px) {
    .team-tile-wrapper {
      width: calc(25% - 21px); /* 4 columns */
    }
  }
  
  /* Medium Screens (Tablets & Small Laptops) */
  @media (max-width: 992px) {
    .team-tile-wrapper {
      width: calc(33.33% - 21px); /* 3 columns */
    }
    .portrait-img {
      height: 150px;
    }
  }
  
  /* Small Screens (Large Phones & Portrait Tablets) */
  @media (max-width: 768px) {
    .team-tile-wrapper {
      width: calc(33.33% - 21px); /* 2 columns */
    }
    .portrait-img {
      height: 200px;
    }
  }
  
  /* Extra Small Screens (Standard Phones) */
  @media (max-width: 576px) {
    .team-tile-wrapper {
      width: calc(50% - 21px); /* 1 column */
    }
    .portrait-img {
      height: 150px;
    }
  }
  
  

.offers-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    animation: scale 0.4s ease-in-out;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(250, 250, 255, 0.9));
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(117, 59, 189, 0.15), 
                inset 0 1px 2px rgba(255, 255, 255, 0.9),
                inset 0 -1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: visible;
    border: 1px solid rgba(117, 59, 189, 0.2);
}

/* .offers-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #753bbd, #ff147a, #753bbd);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
} */

.offers-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(117, 59, 189, 0.3), 
                rgba(117, 59, 189, 0.3), 
                transparent);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 0%;
    }
    100% {
        background-position: 0% 0%;
    }
}




.waitItem {
    animation: waitItemAnimation 2s infinite;
}

@keyframes waitItemAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.waiting-text {
    text-align: center;
    margin: 15px 0 5px;
    color: #753bbd;
    font-size: 18px;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(117, 59, 189, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(117, 59, 189, 0.1);
    position: relative;
    overflow: hidden;
}

.waiting-text::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle at center, rgba(117, 59, 189, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.waiting-text .wait-time {
    color: #ff147a;
    font-size: 14px;
    margin-top: 5px;
    font-weight: 500;
}

.waiting-text .dots {
    display: inline-block;
    width: 15px;
    text-align: left;
}

/* Loading animation enhancement */
.loader {
    margin: 40px 0;
    justify-content: center;
    align-items: center;
    --color: hsl(282, 100%, 50%);
    --animation: 2s ease-in-out infinite
}

.offertitle {
    font-size: 18px;
    color: #753bbd;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(117, 59, 189, 0.1);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(117, 59, 189, 0.1);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.error-container {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(117, 59, 189, 0.1);
}

.error-container .error {
    color: #753bbd;
    font-size: 16px;
    margin-bottom: 15px;
}

@media (max-width: 600px) {
    .offers-container {
        padding: 20px 15px;
    }
    
    .offer-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 15px;
        padding: 15px;
    }
    
    .offer-badge {
        font-size: 10px;
        padding: 4px 10px;
        transform: rotate(45deg) translateX(18px) translateY(-12px);
    }
    
    .offer-button {
        grid-column: 1 / -1;
        width: 100%;
        padding: 10px;
        font-size: 13px;
        justify-content: center;
    }
    
    .offer-details h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .offer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .offertitle {
        font-size: 16px;
        padding: 10px 15px;
    }
    
    .offer-item {
        padding-top: 30px; /* Extra space for badge */
    }
    
    .offer-details h3 {
        font-size: 14px;
        line-height: 1.4;
        margin-top: 8px;
        padding-right: 10px;
    }
    
    .offer-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}

#goods-2-img, #goods-3-img{

    object-fit: contain;
}

/* Enhanced Second Page Styles */
.bottom-block__images {
    display: flex;
    margin-bottom: 30px;
    gap: 25px;
    position: relative;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-block__images.zoom-fade {
    transform: scale(0.9);
    opacity: 0;
    filter: blur(5px);
}

.bottom-block__title {
    text-align: center;
    font-weight: 800;
    font-size: 28px;
    margin-bottom: 25px;
    color: #ff147a;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(255, 20, 122, 0.2);
    transition: all 0.4s ease;
    position: relative;
}

.bottom-block__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #753bbd, #ff147a);
    border-radius: 3px;
}

.bottom-block__title.fade-out {
    transform: translateY(-20px);
    opacity: 0;
}

.bottom-block__btn {
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, #ff147a 0%, #cc0056 100%);
    border-radius: 25px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    height: 46px;
    width: 280px;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 20, 122, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.bottom-block__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg) translateX(-100%);
    transition: all 0.5s ease;
}

.bottom-block__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 20, 122, 0.35);
}

.bottom-block__btn:hover::before {
    transform: skewX(-20deg) translateX(100%);
}

.bottom-block__btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(255, 20, 122, 0.25);
}

.bottom-block__btn.fade-out {
    transform: translateY(20px);
    opacity: 0;
}

.bottom-block__btn.processing {
    cursor: wait;
    opacity: 0.9;
}

.bottom-block__btn--disagree {
    background: linear-gradient(135deg, #9e9e9e 0%, #616161 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
}

.bottom-block__btn--disagree:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.pulse-button {
    animation: button-pulse 2s infinite;
}

@keyframes button-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 20, 122, 0.25);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 20, 122, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 20, 122, 0.25);
    }
}

.goods-img {
    position: relative;
    background: #ededed;
    border: 2px solid #272626;
    border-radius: 25px;
    padding: 15px 15px 12px;
    z-index: 3;
    width: 170px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.goods-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.goods-img--user {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.goods-img img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.goods-img:hover img {
    transform: scale(1.05);
}

.goods-img__text {
    margin-top: 12px;
    color: #753bbd;
    font-weight: bold;
    font-size: 16px;
    word-break: break-word;
    max-width: 100%;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}

.petname {
    color: #ff147a;
}

/* Add a connector between the images */
.bottom-block__images::after {
    content: '→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: #753bbd;
    opacity: 0.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: connector-pulse 2s infinite ease-in-out;
}

@keyframes connector-pulse {
    0%, 100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Enhanced processing page styles */
.processing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.bottom-block__cities-img {
    animation: 3s ease-in-out infinite rotate;
    margin: 10px 0;
    height: 60px;
    width: 60px;
    filter: drop-shadow(0 0 5px rgba(117, 59, 189, 0.5));
    transition: all 0.5s ease;
}

.bottom-block__cities-img.rotate_fast {
    animation: 1.2s ease-in-out infinite rotate;
}

.processing-indicator {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.processing-indicator .dot {
    width: 8px;
    height: 8px;
    background: #753bbd;
    border-radius: 50%;
    display: inline-block;
    animation: dot-pulse 1.5s infinite ease-in-out;
}

.processing-indicator .dot:nth-child(2) {
    animation-delay: 0.5s;
}

.processing-indicator .dot:nth-child(3) {
    animation-delay: 1s;
}

@keyframes dot-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.bottom-block__cities-text {
    color: #1e1b1b;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    margin-top: 15px;
    transition: all 0.4s ease;
}

.pulse-text {
    animation: text-pulse 2s infinite;
}

@keyframes text-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.processing-glow {
    filter: drop-shadow(0 0 10px rgba(117, 59, 189, 0.8));
}



/* Media queries for responsive design */
@media (max-width: 500px) {
    .bottom-block__images {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .bottom-block__images::after {
        content: '↓';
        top: calc(50% - 10px);
        left: 50%;
    }

    .bottom-block__title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .bottom-block__btn {
        width: 100%;
        max-width: 280px;
        font-size: 16px;
    }
    
    .goods-img {
        width: 150px;
        min-height: 180px;
    }
    
    .goods-img img {
        width: 100px;
        height: 100px;
    }
    
    .goods-img__text {
        font-size: 14px;
    }
}

/* Global page transition effects */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

.page-transition .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #753bbd;
    font-size: 40px;
}

/* Add smooth scrolling for page transitions */
html {
    scroll-behavior: smooth;
}

/* Fade-in animation for page elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ============= MODERN UI STYLES ============= */

/* New color palette and variables */
:root {
    --primary: #753bbd;
    --primary-dark: #5a2da0;
    --primary-light: #9a6dd7;
    --accent: #ff147a;
    --accent-dark: #cc0056;
    --accent-light: #ff6ba8;
    --background: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== CONFIRMATION PAGE STYLES ===== */
.confirmation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0rem;
    animation: slideUp var(--transition-slow) forwards;
}

.confirmation-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

.confirmation-title i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.confirmation-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent), var(--primary));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    animation: expandLine 0.8s 0.3s ease forwards;
}

@keyframes expandLine {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

.confirmation-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    /* width: 100%; */
    /* margin: 1rem 0 2rem; */
    flex-direction: row !important; /* Force horizontal */
    flex-wrap: nowrap !important; /* Prevent wrapping */
    overflow-x: auto; /* Allow horizontal scroll if needed */
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    min-height: 280px;
    scroll-snap-type: x mandatory;
}

.profile-card, .pet-card {
    background: linear-gradient(45deg, 
        var(--primary) 0%, 
        transparent 50%, 
        var(--accent) 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 2px solid #272626;
    scroll-snap-align: center;
    animation: cardFloat 3s ease-in-out infinite;
}

.profile-card:hover, .pet-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.profile-card-avatar, .pet-card-image {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-light);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
}

.profile-card-avatar {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.pet-card-image {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
}

.avatar-image, .pet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-highlight, .pet-highlight {
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    animation: rotateHighlight 6s linear infinite;
}

@keyframes rotateHighlight {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-card-name, .pet-card-name {
    
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    color: var(--text-main);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pet-card-name {
    color: var(--accent);
}

.confirmation-connector {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 -0.5rem;
    height: 60px;
}

.connector-line {
    height: 3px;
    width: 100px;
    background: linear-gradient(to right, var(--primary-light), var(--accent-light));
    position: relative;
    overflow: hidden;
}

.connector-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, white, transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

.connector-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    margin-top: 1rem;
}

.action-button {
    position: relative;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    border: none;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--transition-normal);
}

.button-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.button-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.action-button:hover .button-effect {
    transform: translateX(100%);
}

.action-button:active {
    transform: translateY(2px);
}

.confirm-button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    box-shadow: 0 4px 0 var(--accent-dark), var(--shadow-md);
}

.confirm-button:active {
    box-shadow: 0 2px 0 var(--accent-dark), var(--shadow-sm);
}

.cancel-button {
    background: linear-gradient(135deg, #9e9e9e 0%, #616161 100%);
    color: white;
    box-shadow: 0 4px 0 #424242, var(--shadow-md);
}

.cancel-button:active {
    box-shadow: 0 2px 0 #424242, var(--shadow-sm);
}

/* ===== PROCESSING SCREEN STYLES ===== */
.processing-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* padding: 2rem; */
    animation: fadeIn var(--transition-normal) forwards;
}

.processing-title {
    font-size: 2rem;
    color: var(--primary);
    /* margin-bottom: 2.5rem; */
    text-align: center;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.spinner-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 1.5rem 0;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    border-left-color: var(--accent);
    animation: spinnerRotate 2s linear infinite;
}

.spinner-circle {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--card-bg) 0%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.spinner-icon {
    width: 60px;
    height: 60px;
    animation: pulseAndRotate 3s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(117, 59, 189, 0.5));
}

@keyframes spinnerRotate {
    100% { transform: rotate(360deg); }
}

@keyframes pulseAndRotate {
    0%,
	100% {
		transform: rotate(0deg);
		transform-origin: 50% 50%;
	}

	10% {
		transform: rotate(8deg);
	}

	20%,
	40%,
	60% {
		transform: rotate(-10deg);
	}

	30%,
	50%,
	70% {
		transform: rotate(10deg);
	}

	80% {
		transform: rotate(-8deg);
	}

	90% {
		transform: rotate(8deg);
	}
}

.progress-indicator {
    width: 100%;
    max-width: 300px;
    margin: 1.5rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 4px;
    animation: progressFill 2s ease-in-out infinite alternate;
}

@keyframes progressFill {
    0% { width: 15%; }
    100% { width: 85%; }
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-light);
    opacity: 0.3;
    animation: dotPulse 1.5s infinite;
}

.progress-dot:nth-child(2) {
    animation-delay: 0.5s;
}

.progress-dot:nth-child(3) {
    animation-delay: 1s;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 1; }
}

.processing-status {
    font-size: 1.2rem;
    color: var(--text-main);
    text-align: center;
    margin: 1.5rem 0;
    font-weight: 500;
    animation: textFade 2s infinite alternate;
}

@keyframes textFade {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ===== OFFERS SCREEN STYLES ===== */
.verify-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.verify-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(145deg, var(--card-bg) 0%, #f5f5f5 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(117, 59, 189, 0.1);
    animation: slideDown var(--transition-normal) forwards;
}

.verify-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.verify-title {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0;
    line-height: 1.5;
}

.highlight-text {
    color: var (--accent);
    font-weight: bold;
}

.loading-offers {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
}

.loading-animation {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.loading-animation svg {
    width: 100%;
    height: 100%;
    transform-origin: center;
    animation: rotate 2s linear infinite;
}

.loading-animation circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 10;
    stroke-dasharray: 150, 200;
    stroke-dashoffset: -10;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

.loading-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-fade 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
    }
    50% {
        stroke-dasharray: 90, 200;
    }
    100% {
        stroke-dasharray: 1, 200;
    }
}

@keyframes pulse-fade {
    0%, 100% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
}

.loading-text {
    font-size: 1.1rem;
    color: var(--primary);
    text-align: center;
}

.offer-card {
    position: relative;
    background: linear-gradient(145deg, white 0%, #f8f9fa 100%);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    animation: fadeIn var(--transition-normal) forwards;
    border: 2px solid #272626;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.offer-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.offer-content {
    padding: 2rem;
}

.offer-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin: 0 0 1rem;
    padding-right: 100px; /* Make room for badge */
    line-height: 1.4;
}

.offer-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.offer-metadata {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.offer-time, .offer-reward {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(117, 59, 189, 0.1);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    color: var (--text-secondary);
    transition: all var(--transition-normal);
}

.offer-card:hover .offer-time,
.offer-card:hover .offer-reward {
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.reward-value {
    color: var(--accent);
    font-weight: bold;
}

.offer-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.offer-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.offer-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-normal);
}

.offer-button:hover .offer-button-icon {
    transform: translateX(3px);
}

.highlight-offer {
    border: 2px solid var(--accent);
    position: relative;
}

.highlight-offer::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 12px;
    z-index: 3;
    box-shadow: var(--shadow-sm);
}

.offer-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    20%, 100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.waiting-panel {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 1.25rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(117, 59, 189, 0.1);
    margin-top: 1.5rem;
    backdrop-filter: blur(5px);
    animation: slideUp var(--transition-normal) 0.4s forwards;
}

.waiting-icon {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    flex-shrink: 0;
}

.waiting-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary);
    animation: ripple 2s infinite;
    opacity: 0;
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.waiting-content {
    flex: 1;
}

.waiting-text {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0 0 0.5rem;
    font-weight: 500;
}

.waiting-time {
    font-size: 0.9rem;
    color: var(--accent);
    margin: 0;
    text-align: center;
}

/* Animation keyframes */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .confirmation-cards {
        gap: 0.75rem;
        /* margin: 0.5rem 0 1.5rem; */
        padding: 0.5rem;
    }
    
    .profile-card, .pet-card {
        min-width: 150px; /* Ensure minimum width */
        padding: 0.75rem;
    }
    
    .profile-card-avatar, .pet-card-image {
        width: 80px;
        height: 80px;
        margin-bottom: 0.75rem;
    }
    
    .confirmation-connector {
        min-width: 60px;
        margin: 0 -0.5rem;
    }
    
    .connector-line {
        width: 60px;
    }
    
    .connector-icon {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .profile-card-name, .pet-card-name {
        font-size: 0.875rem;
    }
    
    /* Enhance mobile buttons */
    .action-button {
        height: 48px; /* Larger touch target */
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .button-content {
        font-size: 0.9375rem;
    }
    
    .confirmation-cards {
        flex-direction: column;
    }
    
    .confirmation-connector {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .verification-actions {
        max-width: 100%;
    }
    
    .offer-details {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .offer-button {
        width: 100%;
        justify-content: center;
    }
    
    .waiting-panel {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .waiting-ripple {
        display: none;
    }
}

@media (max-width: 480px) {
    .confirmation-title {
        font-size: 1.75rem;
    }
    
    .profile-card, .pet-card {
        width: 170px;
        padding: 1rem;
    }
    
    .profile-card-avatar, .pet-card-image {
        width: 100px;
        height: 100px;
    }
    
    .profile-card-name, .pet-card-name {
        font-size: 1rem;
    }
    
    .action-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .offer-content {
        padding: 1.5rem 1rem;
    }
    
    .offer-title {
        font-size: 1rem;
        padding-right: 80px;
    }
    
    .offer-badge {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .verify-header {
        padding: 1rem;
    }
    
    .verify-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .verify-title {
        font-size: 0.95rem;
    }
}

.confirmation-header {
    text-align: center;
    /* margin-bottom: 2rem; */
}

.confirmation-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.pulse-icon {
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.avatar-ring, .pet-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: ringRotate 4s linear infinite;
}

.avatar-ring {
    border-top-color: var(--primary);
    border-right-color: var(--primary-light);
}

.pet-ring {
    border-top-color: var(--accent);
    border-right-color: var(--accent-light);
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.connector-pulse {
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: pulseMove 2s infinite;
}

@keyframes pulseMove {
    0% { left: 0; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    .confirmation-cards {
        gap: 1rem;
        padding: 0.5rem;
        flex-direction: row !important;
        justify-content: end;
        min-height: auto;
    }
    
    .profile-card, .pet-card {
        width: 130px;
        padding: 1rem;
    }
    
    .profile-card-avatar, .pet-card-image {
        width: 80px;
        height: 80px;
    }
    
    .connector-line {
        width: 60px;
    }
    
    
    
    .button-text {
        font-size: 0.9rem;
    }
}

/* Touch Device Enhancements */
@media (hover: none) {
    .action-button {
        transition: transform 0.2s;
    }
    
    .action-button:active {
        transform: scale(0.98);
    }
}

/* Enhanced Confirmation Cards */
.confirmation-container {
    --card-width: 180px;
    --card-spacing: 20px;
    --connector-width: 80px;
    max-width: min(900px, 100%);
    padding: 1.5rem;
    margin: 0 auto;
}

.confirmation-cards {
    /* display: grid; */
    grid-template-columns: var(--card-width) var(--connector-width) var(--card-width);
    justify-content: center;
    align-items: center;
    gap: var(--card-spacing);
    /* padding: 1rem; */
    /* margin: 1.5rem auto; */
    min-height: unset;
    width: 100%;
    max-width: calc(var(--card-width) * 2 + var(--connector-width) + var(--card-spacing) * 2);
    
    position: relative;
    overflow: visible;
}

.profile-card, .pet-card {
    width: var(--card-width);
    padding: 1.25rem;
    margin: 0;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card-avatar, .pet-card-image {
    margin: 0 auto 1rem;
    width: 100px;
    height: 100px;
    border: 3px solid var(--primary);
}

.confirmation-connector {
    width: var(--connector-width);
    height: 4px;
    margin: 0;
    position: relative;
    transform: none !important;
}

.connector-line {
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    position: relative;
    overflow: hidden;
}

/* .connector-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    z-index: 2;
} */

/* Mobile Optimization */
@media (max-width: 600px) {
    .confirmation-container {
        --card-width: 140px;
        --card-spacing: 10px;
        --connector-width: 60px;
        padding: 1rem;
    }

    .profile-card, .pet-card {
        padding: 1rem;
    }

    .profile-card-avatar, .pet-card-image {
        width: 80px;
        height: 80px;
    }

    .connector-icon {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

    .confirmation-title {
        font-size: 1.5rem;
    }

    .confirmation-subtitle {
        font-size: 0.875rem;
    }
}

/* Add shadow effect to cards */
.profile-card::before,
.pet-card::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    background: var(--primary);
    opacity: 0.1;
    border-radius: var(--border-radius-lg);
    z-index: -1;
    transition: transform 0.3s ease;
}

.profile-card:hover::before,
.pet-card:hover::before {
    transform: translate(-4px, -4px);
}

/* Enhanced animations */
.profile-card, .pet-card {
    animation: none;
}

.profile-card:hover, .pet-card:hover {
    transform: translateY(-5px);
}

.confirmation-connector .connector-pulse {
    width: 12px;
    height: 12px;
}

/* Ultimate Confirmation Card Enhancement */
.confirmation-container {
    --card-width: 180px;
    --card-spacing: 20px;
    --connector-width: 80px;
    max-width: min(900px, 100%);
    padding: 0rem;
    margin: 0 auto;
    perspective: 1000px;
    will-change: transform;
}

.confirmation-header {
    text-align: center;
    /* margin-bottom: 2.5rem; */
    position: relative;
}

.confirmation-title {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

.confirmation-title .pulse-icon {
    position: relative;
    color: var(--accent);
    filter: drop-shadow(0 0 5px rgba(255,20,122,0.5));
}

.confirmation-subtitle {
    font-size: clamp(0.875rem, 3vw, 1rem);
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 500px;
    margin: 0.5rem auto 0;
}



.profile-card, .pet-card {
    width: var(--card-width);
    padding: 1.5rem;
    margin: 0;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.21, 0.67, 0.58, 1), 
                box-shadow 0.4s cubic-bezier(0.21, 0.67, 0.58, 1);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.profile-card {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(117, 59, 189, 0.1), 
                0 4px 8px rgba(117, 59, 189, 0.05);
}

.pet-card {
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(255, 20, 122, 0.1), 
                0 4px 8px rgba(255, 20, 122, 0.05);
}

.profile-card-avatar, .pet-card-image {
    margin: 0 auto 1.25rem;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.profile-card-avatar {
    background: radial-gradient(circle at 30% 30%, var(--primary-light) 0%, var(--primary) 90%);
    box-shadow: 0 5px 15px rgba(117, 59, 189, 0.2), 
                0 0 0 2px rgba(255, 255, 255, 0.8), 
                0 0 0 4px rgba(117, 59, 189, 0.2);
}

.pet-card-image {
    background: radial-gradient(circle at 30% 30%, var(--accent-light) 0%, var(--accent) 90%);
    box-shadow: 0 5px 15px rgba(255, 20, 122, 0.2), 
                0 0 0 2px rgba(255, 255, 255, 0.8), 
                0 0 0 4px rgba(255, 20, 122, 0.2);
}

.avatar-image, .pet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.profile-card:hover .avatar-image,
.pet-card:hover .pet-image {
    transform: scale(1.1);
}

.avatar-highlight, .pet-highlight {
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    transform: rotate(-45deg);
    animation: rotateHighlight 9s infinite linear;
    opacity: 0.7;
}

.profile-card-name, .pet-card-name {
    
    font-size: clamp(1rem, 3vw, 1rem);
    white-space: nowrap;
    font-weight: 700;
    text-align: center;
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.profile-card-name {
    color: var(--primary);
    background: rgba(117, 59, 189, 0.05);
}

.pet-card-name {
    color: var(--accent);
    background: rgba(255, 20, 122, 0.05);
}

.profile-card:hover .profile-card-name {
    transform: scale(1.05);
    background: rgba(117, 59, 189, 0.1);
}

.pet-card:hover .pet-card-name {
    transform: scale(1.05);
    background: rgba(255, 20, 122, 0.1);
}

/* Enhanced connector with animation */
.confirmation-connector {
    width: var(--connector-width);
    height: 4px;
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
}

.connector-line {
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.connector-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.8) 50%, 
        rgba(255,255,255,0) 100%);
    animation: line-shine 3s infinite;
}

@keyframes line-shine {
    0% {
        left: -100%;
    }
    40%, 100% {
        left: 100%;
    }
}

.connector-pulse {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(0, -50%);
    box-shadow: 0 0 10px 2px var(--accent);
    animation: pulse-move 3s infinite ease-out;
    z-index: 2;
}

@keyframes pulse-move {
    0% {
        left: 0;
        opacity: 1;
        transform: translate(0, -50%) scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: translate(50%, -50%) scale(1);
    }
    100% {
        left: 100%;
        opacity: 0;
        transform: translate(0, -50%) scale(0.8);
    }
}

/* .connector-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2),
                0 0 0 2px rgba(255, 255, 255, 0.6);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
} */

.connector-icon:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25),
                0 0 0 3px rgba(255, 255, 255, 0.7);
}

/* Enhanced 3D card effect */
.profile-card::before,
.pet-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: calc(var(--border-radius-lg) + 2px);
    background: linear-gradient(45deg, 
        var(--primary) 0%, 
        transparent 50%, 
        var(--accent) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.profile-card:hover::before,
.pet-card:hover::before {
    opacity: 0.4;
}

.profile-card::after,
.pet-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, 
        rgba(255,255,255,0.8) 0%, 
        rgba(255,255,255,0.2) 20%, 
        rgba(255,255,255,0) 60%);
    z-index: 1;
    opacity: 0.4;
    border-radius: var(--border-radius-lg);
    transition: opacity 0.4s ease;
}

.profile-card:hover,
.pet-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
}

.profile-card:hover {
    box-shadow: 0 12px 30px rgba(117, 59, 189, 0.15),
                0 8px 15px rgba(117, 59, 189, 0.1);
}

.pet-card:hover {
    box-shadow: 0 12px 30px rgba(255, 20, 122, 0.15),
                0 8px 15px rgba(255, 20, 122, 0.1);
}

/* Enhanced action buttons */
.confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    /* margin: 1rem auto; */
}

.action-button {
    position: relative;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    border: none;
    font-weight: bold;
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
}

.button-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.button-text {
    position: relative;
    z-index: 2;
    transition: letter-spacing 0.3s ease;
}

.button-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.4) 50%, 
        rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.action-button:hover .button-effect {
    transform: translateX(100%);
}

.action-button:hover .button-text {
    letter-spacing: 0.1em;
}

.confirm-button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    box-shadow: 0 4px 0 var(--accent-dark), 
                0 8px 20px rgba(255, 20, 122, 0.15);
}

.confirm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--accent-dark),
                0 10px 25px rgba(255, 20, 122, 0.25);
}

.confirm-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 var(--accent-dark),
                0 6px 15px rgba(255, 20, 122, 0.2);
}

.cancel-button {
    background: linear-gradient(135deg, #9e9e9e 0%, #616161 100%);
    color: white;
    box-shadow: 0 4px 0 #424242, 
                0 8px 15px rgba(0, 0, 0, 0.1);
}

.cancel-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #424242,
                0 10px 20px rgba(0, 0, 0, 0.15);
}

.cancel-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 #424242,
                0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Optimized responsive design */
@media (max-width: 600px) {
    .confirmation-container {
        --card-width: 150px;
        --card-spacing: 10px;
        --connector-width: 50px;
        padding: 1rem;
    }

    .confirmation-cards {
        padding: 0.75rem;
        /* margin: 1rem auto; */
    }

    .profile-card, .pet-card {
        padding: 1.25rem 0.75rem;
    }

    .profile-card-avatar, .pet-card-image {
        width: 90px;
        height: 90px;
        margin-bottom: 1rem;
    }

    .connector-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .action-button {
        padding: 0.875rem 1.5rem;
    }

    /* Force GPU acceleration for better performance on mobile */
    .profile-card, 
    .pet-card, 
    .confirmation-connector, 
    .action-button {
        transform: translateZ(0);
    }
    
    /* Disable hover effects on touch devices for better performance */
    .profile-card:hover,
    .pet-card:hover {
        transform: none;
    }
    
    /* Touch feedback instead of hover */
    .profile-card:active,
    .pet-card:active {
        transform: scale(0.98);
    }
}

/* Ultra-small devices */
@media (max-width: 400px) {
    .confirmation-container {
        --card-width: 130px;
        --card-spacing: 8px;
        --connector-width: 40px;
    }

    .profile-card-avatar, .pet-card-image {
        width: 80px;
        height: 80px;
    }

    .profile-card-name, .pet-card-name {
        font-size: 0.95rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .profile-card, 
    .pet-card, 
    .avatar-image, 
    .pet-image, 
    .connector-pulse,
    .connector-line::after,
    .avatar-highlight, 
    .pet-highlight {
        animation: none !important;
        transition-duration: 0.1s !important;
    }
    
    .profile-card:hover,
    .pet-card:hover {
        transform: translateY(-2px);
    }
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}



/* offer old */


.offers-container {
    max-width: 800px;
    margin: 20px auto;
    
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: scale 0.4s ease-in-out;
}

.offer-item {
    width: 100%;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 15px;
    background: #ededed;
    border: 2px solid #272626;
    border-radius: 25px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(117, 59, 189, 0.2);
}

.offer-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 20, 122, 0.1),
        transparent
    );
    transition: 0.5s;
}

.offer-item:hover::before {
    left: 100%;
}

.offer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(117, 59, 189, 0.3);
}

.offer-item img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: contain;
    border: 2px solid #000;
    background-color: white;
    padding: 5px;
    transition: transform 0.3s ease;
}

.offer-item:hover img {
    transform: scale(1.05);
}

.offer-details {
    text-align: left;
    padding-right: 10px;
}

.offer-details h3 {
    color: #753bbd;
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.offer-details p {
    color: #1e1b1b;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}


.offer-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: 0.5s;
}

.offer-button:hover::before {
    left: 100%;
}

.offer-button:hover {
    background: #753bbd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(117, 59, 189, 0.3);
}

.offer-button:active {
    transform: translateY(0);
}

.offertitle {
    font-size: 16px;
    color: #753bbd;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
    /* margin-bottom: 20px; */
}

.waiting-text {
    text-align: center;
    margin: 5px 0;
    color: #753bbd;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.waiting-text .wait-time {
    color: #ff147a;
    font-size: 14px;
    margin-top: 5px;
}

.waiting-text .dots {
    display: inline-block;
    width: 20px;
    animation: dotAnimation 1.5s infinite;
}

@keyframes dotAnimation {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
    100% { content: '.'; }
}

/* Add responsive styles for waiting text */
@media (max-width: 768px) {
    .offertitle{
      font-size: 16px;
    }
    .waiting-text {
        font-size: 16px;
    }
    .waiting-text .wait-time {
        font-size: 13px;
    }
    h1{
      font-size: 16px;
     
  }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .offer-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
        padding: 12px;
    }
    
    .offer-item img {
        width: 60px;
        height: 60px;
    }
    
    .offer-button {
        grid-column: 1 / -1;
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }
    
    .offer-details h3 {
        font-size: 16px;
    }
    
    .offer-details p {
        font-size: 13px;
    }
}



#goods-2-img, #goods-3-img{

    object-fit: contain;
}