:root {
    --primary-bg: #0d0f2b; /* Dark Blue/Purple */
    --secondary-bg: rgba(20, 25, 70, 0.85);
    --accent-color: #ffc107; /* Free Fire Gold */
    --text-color: #ffffff;
    --dark-text: #2c1e0a;
    --discount-bg: #d32f2f; /* Red */
    --button-blue: #1976d2; /* Blue */
    --border-color: #4fc3f7; /* Light Blue */
    --glow-color: #87CEEB; /* Sky Blue for glow */
    --success-color: #4caf50; /* Green */
    --selection-glow-color: #ffc107; /* Gold glow */
    --ff-orange: #ff8f00;
    --ff-yellow: #ffc107;
    --ff-dark-orange: #e65100;
    --ff-blue: #00aaff;
    --ff-dark-blue: #0d1a3a;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.6), 0 0 5px rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 1);
    }
    100% {
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.6), 0 0 5px rgba(255, 255, 255, 0.8);
    }
}

@keyframes pulse-border {
  0% {
    border-color: var(--selection-glow-color);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.6), 0 0 3px rgba(255, 255, 255, 0.4) inset;
  }
  50% {
    border-color: #ffe082;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.9), 0 0 5px rgba(255, 255, 255, 0.5) inset;
  }
  100% {
    border-color: var(--selection-glow-color);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.6), 0 0 3px rgba(255, 255, 255, 0.4) inset;
  }
}

@keyframes rotate {
  to {
    --angle: 360deg;
  }
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

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

@keyframes titlePulse {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 5px rgba(255,193,7,0.5), 0 0 10px rgba(255,193,7,0.5);
  }
  50% {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255,193,7,0.8), 0 0 20px rgba(255,193,7,0.8);
  }
}

@keyframes badgeGlowGold {
  0%, 100% {
    box-shadow: 0 2px 5px rgba(0,0,0,0.5), 0 0 8px rgba(255, 143, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.3);
  }
  50% {
    box-shadow: 0 2px 5px rgba(0,0,0,0.5), 0 0 16px rgba(255, 143, 0, 0.9), inset 0 1px 0 rgba(255,255,255,0.3);
  }
}

@keyframes float-image {
  0% { transform: scale(1.4) translateY(0px); }
  50% { transform: scale(1.45) translateY(-4px); }
  100% { transform: scale(1.4) translateY(0px); }
}

@keyframes badgeGlow {
  0%, 100% {
    box-shadow: 0 4px 8px rgba(0,0,0,0.5), 0 0 10px rgba(76, 175, 80, 0.6);
  }
  50% {
    box-shadow: 0 4px 8px rgba(0,0,0,0.5), 0 0 20px rgba(76, 175, 80, 0.9);
  }
}

html {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-bg);
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    height: 100%;
    min-height: 100svh; /* Use small viewport height to account for mobile browser UI */
    overflow: hidden;
}

#app-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(13, 15, 43, 0.85), rgba(13, 15, 43, 0.95));
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent the whole container from scrolling */
    position: relative;
    box-sizing: border-box;
    border: 2px solid rgba(0, 170, 255, 0.2);
}

.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--ff-blue);
    border-style: solid;
    z-index: 10;
    opacity: 0.8;
    box-shadow: 0 0 10px var(--ff-blue);
}
.top-left {
    top: -2px;
    left: -2px;
    border-width: 3px 0 0 3px;
}
.top-right {
    top: -2px;
    right: -2px;
    border-width: 3px 3px 0 0;
}
.bottom-left {
    bottom: -2px;
    left: -2px;
    border-width: 0 0 3px 3px;
}
.bottom-right {
    bottom: -2px;
    right: -2px;
    border-width: 0 3px 3px 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(0,0,0,0.5);
    border-bottom: 2px solid rgba(79, 195, 247, 0.3);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
    flex-shrink: 0; /* Prevent header from shrinking */
}

.header-side {
    width: 60px; /* Set a fixed width for the side containers */
    flex-shrink: 0; /* Prevent them from shrinking */
}

.header-side:first-child {
    flex: 0 0 auto; /* Override flex-grow */
    justify-content: flex-start;
}

.header-side:last-child {
    margin-left: 0; /* Remove margin-left: auto */
    flex: 0 0 auto; /* Override flex-grow */
    justify-content: flex-end;
}

.header-logo {
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.6));
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.garena-logo {
    height: 60px;
}

.title {
    font-family: 'Lilita One', cursive;
    font-size: clamp(28px, 8vw, 48px);
    margin: 0 10px;
    text-align: center;
    white-space: nowrap;
    border: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(90deg, var(--ff-yellow), #fff, var(--ff-orange), #fff, var(--ff-yellow));
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 1px var(--ff-dark-orange);
    animation: titleShine 4s linear infinite, titlePulse 2.5s ease-in-out infinite;
}

.country-info {
    display: flex;
    align-items: center;
    /* background-color: rgba(0,0,0,0.3); */
    /* padding: 5px 10px; */
    /* border-radius: 20px; */
    font-size: 14px;
    font-weight: bold;
    gap: 8px;
}

.flag {
    font-size: 16px;
}

.ff-logo {
    height: 40px;
}

.back-button {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.currency {
    background-color: rgba(0,0,0,0.3);
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.currency img {
    width: 20px;
    margin-right: 5px;
}

.tabs {
    display: flex;
    justify-content: center;
    background-color: rgba(0,0,0,0.3);
    padding: 5px 0;
}

.tab-button {
    font-family: 'Lilita One', cursive;
    font-size: 16px;
    color: var(--text-color);
    background: transparent;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    position: relative;
    opacity: 0.7;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab-button.active {
    opacity: 1;
    color: var(--accent-color);
    background-color: rgba(255, 193, 7, 0.2);
    text-shadow: 0 0 5px var(--accent-color);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    width: 80%;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-color);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.sale-banner {
    background: linear-gradient(90deg, var(--ff-orange) 0%, var(--ff-yellow) 100%);
    text-align: center;
    padding: 8px 15px;
    font-family: 'Lilita One', cursive;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(255, 143, 0, 0.7);
    width: -moz-fit-content;
    width: fit-content;
    margin: 10px auto;
    border-radius: 0;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sale-text {
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--dark-text);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.4);
}

.timer {
    font-size: 18px;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    align-items: stretch; /* Align items to fill height */
    gap: 8px;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.time-box {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.time-label {
    font-size: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0;
}

.colon {
    display: none; /* No longer needed */
}

.item-display {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ff-blue) transparent;
    min-height: 200px; /* Ensure it has a minimum height */
}

.item-display::-webkit-scrollbar {
  width: 6px;
}
.item-display::-webkit-scrollbar-track {
  background: transparent;
}
.item-display::-webkit-scrollbar-thumb {
  background-color: var(--ff-blue);
  border-radius: 6px;
}

.featured-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.item-card {
    background: linear-gradient(160deg, rgba(13, 26, 58, 0.85) 0%, rgba(10, 10, 30, 0.95) 100%);
    border: 2px solid transparent;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    min-height: 240px;
    background-clip: padding-box;
    z-index: 1;
    clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.item-card:hover:not(.selected) {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    margin: -2px;
    background: conic-gradient(from var(--angle), transparent 25%, var(--ff-blue), var(--ff-yellow), transparent 75%);
    transition: opacity 0.3s ease-in-out;
    clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    opacity: 1; /* Always visible */
    animation: rotate 6s linear infinite; /* Always animating */
}

.item-card:hover:not(.selected)::before {
    /* This is no longer needed as the animation is always on */
}

.item-card.selected,
.item-card:hover:not(.selected) {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.item-card.shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}

.item-card-border {
    display: none; /* Replaced by ::before pseudo-element */
}

.item-card::after {
    display: none; /* Disabled rotating gradient */
}

.item-card.featured {
    flex-direction: row;
    text-align: left;
    align-items: center;
    padding: 15px;
}

.item-card.featured .image-container {
    width: 40%;
    flex-shrink: 0;
    margin-right: 15px;
    padding: 0;
    background: transparent;
}

.item-card.featured .item-details {
    flex-grow: 1;
    position: relative;
    padding-left: 10px;
}

.item-card.featured .promo-badge {
    position: static;
    transform: none;
    display: inline-block;
    margin-bottom: 5px;
    font-size: 14px;
}

.item-card.featured .item-name {
    font-size: 18px;
    margin-bottom: 8px;
}

.item-card.featured .price-container {
    justify-content: flex-start;
    margin-bottom: 12px;
}

.item-card.featured .select-button {
    width: auto;
    padding: 8px 20px;
}

.item-card.selected {
    /* No border-color change needed */
    /* transform and box-shadow moved up to be shared with hover */
}

.item-card.selected::before {
    background: linear-gradient(160deg, var(--ff-yellow), var(--ff-orange));
    animation: pulse-border 1.5s infinite;
    opacity: 1;
}

.item-card.selected:hover::before {
    animation: pulse-border 1.5s infinite; /* Keep selected animation on hover */
}

.item-card.selected .promo-badge {
    background: linear-gradient(45deg, var(--success-color) 0%, #66bb6a 100%);
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.item-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transform: scale(1.5);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.item-card.selected .item-image,
.item-card:hover:not(.selected) .item-image {
    transform: scale(1.6);
}

.item-details {
    display: none;
}

.promo-badge {
    position: absolute;
    top: 15px;
    left: -32px;
    width: 140px;
    transform: rotate(-45deg);
    background: linear-gradient(45deg, var(--success-color) 0%, #66bb6a 100%);
    color: white;
    padding: 4px 0;
    font-size: 15px;
    font-family: 'Lilita One', cursive;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    z-index: 5;
    letter-spacing: 1.5px;
    text-align: center;
    border: 2px solid white;
    transition: background 0.3s ease-in-out;
    animation: badgeGlow 2s infinite ease-in-out;
}

.image-container {
    position: relative;
    background-color: transparent; /* No longer need the dark bg */
    border-radius: 10px;
    padding: 10px 10px; /* Adjusted vertical padding to accommodate larger image */
    box-sizing: border-box;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}

.image-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    padding-bottom: 150%;
    background: radial-gradient(circle, rgba(0, 170, 255, 0.25) 0%, rgba(0, 170, 255, 0) 60%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.item-card:hover:not(.selected) .image-container::after {
    opacity: 1;
}

.select-button {
    display: none;
}

.selection-box {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid white;
    border-radius: 4px;
    z-index: 10;
    transition: background-color 0.2s, border-color 0.2s;
}

.selection-box::after {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: var(--success-color);
    text-shadow: 0 0 4px black;
    opacity: 0;
    transition: opacity 0.2s;
}

.item-card.selected .selection-box {
    background-color: rgba(76, 175, 80, 0.7);
    border-color: white;
}

.item-card.selected .selection-box::after {
    opacity: 1;
}

.watermark {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Lilita One', cursive;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
    -webkit-text-stroke: 1px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 3;
    letter-spacing: 2px;
    white-space: nowrap;
}

footer {
    padding: 10px 15px;
    background-color: rgba(0,0,0,0.4);
    border-top: 2px solid rgba(79, 195, 247, 0.3);
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.selected-count {
    background-color: rgba(0,0,0,0.5);
    padding: 10px 15px;
    border-radius: 4px;
    border: 2px solid var(--ff-blue);
    font-family: 'Lilita One', cursive;
    font-size: 22px;
    color: var(--text-color);
    text-shadow: 0 0 5px var(--ff-blue);
    line-height: 1;
    flex-shrink: 0;
    box-shadow: inset 0 0 8px rgba(0, 170, 255, 0.4);
}

.buy-button {
    width: 100%;
    background: linear-gradient(180deg, #6c757d 0%, #495057 100%);
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Lilita One', cursive;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    border: 3px solid #868e96;
    border-radius: 8px;
    padding: 12px;
    cursor: not-allowed;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 5px 0 #343a40;
    transition: all 0.2s ease-in-out;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    -webkit-clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.buy-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 0 #343a40;
}

.buy-button.active {
    background: linear-gradient(180deg, var(--ff-yellow) 0%, var(--ff-orange) 100%);
    border: 3px solid #fff;
    box-shadow: 0 5px 0 var(--ff-dark-orange);
    color: var(--dark-text);
    cursor: pointer;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
}

.buy-button.active:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 var(--ff-dark-orange);
}

.buy-button .price-info {
    display: none; /* Hide any remaining price info elements */
}

/* Notification Modal */
#notification-modal .notification-content {
    width: 80%;
    max-width: 320px;
    padding: 25px 20px;
    background: linear-gradient(180deg, rgba(10, 5, 0, 0.9) 0%, rgba(30, 10, 0, 0.98) 100%);
    font-family: 'Roboto', sans-serif;
    border-color: var(--ff-orange);
    box-shadow: 0 0 30px rgba(255, 143, 0, 0.7), 0 0 10px rgba(255, 255, 255, 0.2) inset;
    clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    text-align: center;
}

#notification-title {
    font-family: 'Lilita One', cursive;
    font-size: 22px;
    margin: 0 0 10px 0;
    color: var(--discount-bg);
    text-shadow: 0 0 8px rgba(255, 82, 82, 0.8);
}

#notification-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

#selected-skins-preview {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.skin-preview-item {
    width: 80px;
    height: 80px;
    background-color: rgba(0,0,0,0.3);
    border: 2px solid var(--ff-blue);
    border-radius: 8px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: none;
}

.skin-preview-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-content {
    background: url('./background.png') no-repeat center center;
    background-size: cover;
    padding: 25px;
    border-radius: 8px;
    border: 3px solid var(--ff-orange);
    text-align: center;
    width: 85%;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(255, 143, 0, 0.7), 0 0 10px rgba(255, 255, 255, 0.2) inset;
    font-family: 'Lilita One', cursive;
    color: var(--text-color);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 5, 0, 0.8) 0%, rgba(30, 10, 0, 0.95) 100%);
    border-radius: 6px; /* Match inner radius */
    z-index: 1;
}

#verification-skins-preview {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    min-height: 140px; /* Reserve space for the larger preview */
    align-items: center;
}

#verification-skins-preview .skin-preview-item {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(13, 26, 58, 0.9) 0%, rgba(10, 10, 30, 1) 70%);
    border: 3px solid var(--ff-blue);
    border-radius: 50%;
    animation: verification-glow 2s ease-in-out infinite;
    padding: 8px;
}

#verification-skins-preview .skin-preview-item img {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
    animation: float-image 3s ease-in-out infinite;
    transform: scale(1.4);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 5, 0, 0.8) 0%, rgba(30, 10, 0, 0.95) 100%);
    border-radius: 6px; /* Match inner radius */
    z-index: 1;
}

#verification-step-container {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    padding: 10px 0;
}

/* Position all direct children of modal-content above the overlay */
.modal-content > * {
    position: relative;
    z-index: 2;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

#modal-title, .modal-title-header {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    letter-spacing: 1px;
}

#modal-loading-container {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    padding: 20px 0;
}

.loader {
    border: 8px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    border-top: 8px solid var(--accent-color);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--accent-color);
}

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

#loading-timer {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-color);
    min-height: 35px;
}

#modal-steps-container {
    /* Initially visible */
}

.modal-step {
    display: none;
    min-height: 150px;
    display: none;
    flex-direction: column;
    justify-content: center;
}

.modal-step[data-step="4"] {
    animation: fadeInStep 0.5s ease-in-out;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-step p {
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

#success-secondary-message {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    opacity: 0.9;
    margin-top: 15px;
    line-height: 1.4;
}

.modal-step #generation-status {
    transition: opacity 0.3s ease-out;
}

.modal-step #generation-status.fade-out {
    opacity: 0;
}

.modal-step.active {
    display: flex;
}

#success-title {
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.5s backwards;
}

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes verification-glow {
  0%, 100% {
    box-shadow: 0 0 15px var(--ff-blue), 0 0 5px white, inset 0 0 5px rgba(0, 170, 255, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px var(--ff-blue), 0 0 10px white, inset 0 0 8px rgba(0, 170, 255, 0.8);
    transform: scale(1.03);
  }
}

.success-animation-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-animation-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.6) 0%, rgba(76, 175, 80, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: success-glow 1.5s ease-out 0.5s forwards;
}

@keyframes success-glow {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

.success-animation {
    margin: 0;
    position: relative;
    z-index: 1;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 4;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin: 10% auto;
    box-shadow: inset 0px 0px 0px #4caf50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke: #4caf50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

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

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 40px #4caf50;
    }
}

.input-group {
    display: flex;
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background-color: rgba(10, 25, 47, 0.9);
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.5) inset;
    transition: border-color 0.3s, box-shadow 0.3s;
    overflow: hidden; /* To keep child corners rounded */
}

.input-group:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7) inset, 0 0 10px rgba(255, 215, 0, 0.5);
}

.input-group-prepend {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background-color: rgba(0,0,0,0.3);
    border-right: 1px solid var(--border-color);
}

.input-group-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group-icon img {
    height: 30px;
    width: 30px;
    object-fit: contain;
}

.instagram-input-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

#player-id-input,
#instagram-id-input {
    flex-grow: 1;
    width: 100%;
    padding: 12px 15px;
    border: none;
    background-color: transparent;
    color: var(--text-color);
    font-size: 16px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

#player-id-input:focus,
#instagram-id-input:focus {
    outline: none;
}

#player-id-input::placeholder,
#instagram-id-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-with-icon {
    position: relative;
    width: 100%;
    margin-top: 10px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    pointer-events: none;
}

.platform-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.platform-btn {
    background-color: rgba(40, 25, 10, 0.7);
    border: 2px solid var(--ff-orange);
    color: var(--text-color);
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.platform-btn:hover {
    background-color: rgba(255, 143, 0, 0.4);
}

.platform-btn.selected {
    background-color: var(--accent-color);
    color: var(--dark-text);
    border-color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-color);
    text-shadow: none;
}

#generation-console-container {
    width: 100%;
    height: 120px;
    background-color: rgba(0,0,0,0.7);
    border: 1px solid var(--ff-orange);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

#generation-console-container::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--ff-yellow), transparent);
    box-shadow: 0 0 8px var(--ff-yellow);
    animation: scanline 3s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(130px); /* container height + buffer */
    }
}

#generation-console {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: #00ff41; /* classic green terminal color */
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    scrollbar-width: thin;
    scrollbar-color: var(--ff-orange) transparent;
}

#generation-console::-webkit-scrollbar {
  width: 4px;
}
#generation-console::-webkit-scrollbar-track {
  background: transparent;
}
#generation-console::-webkit-scrollbar-thumb {
  background-color: var(--ff-orange);
  border-radius: 4px;
}

#generation-console p {
    margin: 0 0 5px 0;
    line-height: 1.4;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    overflow: hidden; /* For typewriter effect */
    white-space: nowrap; /* For typewriter effect */
    letter-spacing: .1em; /* For typewriter effect */
}

#generation-console p.success {
    color: #4caf50;
}

#generation-console p.info {
    color: #ffc107;
}

#generation-console p.error {
    color: #f44336;
}

#generation-console p::before {
    content: '> ';
}

/* Add a blinking cursor effect */
.console-cursor {
    animation: blink 1s step-end infinite;
    color: #00ff41;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.progress-bar {
    width: 100%;
    height: 28px;
    background-color: rgba(10, 5, 0, 0.8);
    border-radius: 0;
    border: 2px solid var(--ff-orange);
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(255, 143, 0, 0.5) inset;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
    position: relative;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(0,0,0,0.2),
        rgba(0,0,0,0.2) 10px,
        transparent 10px,
        transparent 20px
    );
}

#progress-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: 'Lilita One', cursive;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    z-index: 2;
    font-weight: bold;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.progress-bar-inner {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--ff-orange) 0%, var(--ff-yellow) 100%);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    background-size: 200% 200%;
    animation: progress-animation 2s ease infinite;
    position: relative;
    overflow: hidden;
}

.progress-bar-inner.animating + #progress-bar-text {
    opacity: 1;
}

.progress-bar-inner::after {
    content: '';
    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.3) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    animation: progress-shine 2s infinite;
}

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

@keyframes progress-shine {
    100% {
        transform: translateX(100%);
    }
}

#generation-status {
    margin-top: 15px;
    min-height: 20px;
    font-size: 16px;
    color: #eee;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(79, 195, 247, 0.5); /* Added glow */
    line-height: 1.3;
}

#generation-button-container {
    margin-top: 20px;
    min-height: 70px; /* Reserve space for button */
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 5px 0 var(--ff-dark-orange), 0 0 20px rgba(255,193,7,0.6);
        transform: scale(1) perspective(1px) translateZ(0);
    }
    50% {
        box-shadow: 0 5px 0 var(--ff-dark-orange), 0 0 30px rgba(255,193,7,0.9);
        transform: scale(1.03) perspective(1px) translateZ(0);
    }
}

#generation-continue-btn {
    font-family: 'Lilita One', cursive;
    font-size: 20px;
    padding: 14px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background: linear-gradient(180deg, var(--ff-yellow) 0%, var(--ff-orange) 100%);
    color: var(--dark-text);
    box-shadow: 0 5px 0 var(--ff-dark-orange), 0 0 20px rgba(255,193,7,0.6);
    text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    transform: perspective(1px) translateZ(0);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    -webkit-clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

#generation-continue-btn:not(:disabled) {
    animation: buttonPulse 2s ease-in-out infinite;
}

#generation-continue-btn:hover {
    filter: brightness(1.1);
}

#generation-continue-btn:active {
    transform: translateY(3px) perspective(1px) translateZ(0);
    box-shadow: 0 2px 0 var(--ff-dark-orange), 0 0 15px rgba(255,193,7,0.8);
}

#generation-continue-btn:disabled {
    background: linear-gradient(180deg, #6c757d 0%, #495057 100%);
    color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 5px 0 #343a40;
    cursor: not-allowed;
    filter: none;
}

#generation-continue-btn .btn-text {
    position: relative;
    z-index: 1;
    transition: opacity 0.2s ease-in-out;
}

#generation-continue-btn.loading .btn-text {
    opacity: 0;
}

#generation-continue-btn .btn-glare {
    display: none;
}

#generation-continue-btn:not(:disabled) .btn-glare {
    display: block;
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 60%
    );
    transform: translateX(-150%);
    animation: glare-animation 3s ease-in-out infinite;
    pointer-events: none;
}

#generation-continue-btn .loader-dots {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#generation-continue-btn.loading .loader-dots {
    display: flex;
}

.loader-dots div {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    margin: 0 4px;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loader-dots .dot1 {
    animation-delay: -0.32s;
}

.loader-dots .dot2 {
    animation-delay: -0.16s;
}

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

.buy-button .btn-glare,
.modal-buttons button .btn-glare {
    display: none;
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 60%
    );
    transform: translateX(-150%);
    animation: glare-animation 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glare-animation {
    0% {
        transform: translateX(-150%);
    }
    50% {
        transform: translateX(150%);
    }
    100% {
        transform: translateX(-150%);
    }
}

#modal-text {
    font-size: 18px;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    gap: 15px;
}

#modal-next-btn {
    font-family: 'Lilita One', cursive;
    font-size: 18px;
    padding: 12px 25px;
    border-radius: 8px;
    border: 3px solid #fff;
    cursor: pointer;
    min-width: 180px;
    transition: all 0.2s ease-in-out;
    background: linear-gradient(180deg, var(--ff-yellow) 0%, var(--ff-orange) 100%);
    color: var(--dark-text);
    box-shadow: 0 5px 0 var(--ff-dark-orange);
    text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
    letter-spacing: 1px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

#modal-next-btn:hover {
    filter: brightness(1.1);
}

#modal-next-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 var(--ff-dark-orange);
}

#verification-next-btn {
    font-family: 'Lilita One', cursive;
    font-size: 18px;
    padding: 12px 25px;
    border-radius: 8px;
    border: 3px solid #fff;
    cursor: pointer;
    min-width: 180px;
    transition: all 0.2s ease-in-out;
    background: linear-gradient(180deg, var(--ff-yellow) 0%, var(--ff-orange) 100%);
    color: var(--dark-text);
    box-shadow: 0 5px 0 var(--ff-dark-orange);
    text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
    letter-spacing: 1px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

#verification-next-btn:not(:disabled):hover {
    filter: brightness(1.1);
}

#verification-next-btn:not(:disabled):active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 var(--ff-dark-orange);
}

#verification-next-btn:disabled {
    background: linear-gradient(180deg, #6c757d 0%, #495057 100%);
    color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 5px 0 #343a40;
    cursor: not-allowed;
    border-color: #868e96;
}

.instagram-credit-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 6px 12px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 6px;
    border: 1px solid white;
    box-shadow: 0 0 10px rgba(220, 39, 67, 0.5);
    text-decoration: none;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instagram-credit-form:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(220, 39, 67, 0.8);
}

.instagram-credit-form .instagram-icon {
    width: 20px;
    height: 20px;
}

.instagram-credit-form span {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.instagram-credit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    padding: 5px 10px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 6px;
    border: 1px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 10px rgba(220, 39, 67, 0.5);
    text-decoration: none;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.instagram-credit:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 0 15px rgba(220, 39, 67, 0.8);
}

.instagram-credit .instagram-icon {
    width: 18px;
    height: 18px;
}

.instagram-credit span {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

/* Responsive styles for mobile */
@media screen and (max-width: 480px) {
    header {
        padding: 8px 10px;
        gap: 5px; /* Reduced gap for tighter spacing */
        justify-content: space-between;
    }

    .header-side {
        width: 60px; /* Set a fixed width for the side containers */
        flex-shrink: 0; /* Prevent them from shrinking */
    }

    .header-side:first-child {
        flex: 0 0 auto; /* Override flex-grow */
        justify-content: flex-start;
    }
    
    .title {
        margin: 0 5px; /* Adjusted margins */
        flex-shrink: 0; /* Prevent title from shrinking */
        flex: 1; /* Allow title to take up remaining space */
        text-align: center;
    }

    .header-side:last-child {
        margin-left: 0; /* Remove margin-left: auto */
        flex: 0 0 auto; /* Override flex-grow */
        justify-content: flex-end;
    }

    .sale-banner {
        padding: 6px 10px;
    }

    .sale-text {
        font-size: 14px;
    }

    .timer {
        font-size: 16px;
        gap: 5px;
    }

    .time-box {
        padding: 3px 6px;
    }

    .time-label {
        font-size: 8px;
    }

    .garena-logo {
        height: 50px;
    }

    .ff-logo {
        height: 35px;
    }
}

@media screen and (max-width: 360px) {
    .title {
        /* No longer needed here, handled by clamp() */
    }
    .item-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive styles for larger screens */
@media screen and (min-width: 600px) {
    .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media screen and (min-width: 1024px) {
    header {
        padding: 15px 30px;
    }

    .title {
        /* No longer needed here, handled by clamp() */
    }

    .item-grid {
        padding: 25px;
        gap: 25px;
    }

    footer {
        padding: 20px;
    }

    .buy-button {
        font-size: 28px;
        padding: 15px;
    }
}

/* Social Proof Toast Notifications */
#social-proof-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 2000;
    pointer-events: none; /* Allows clicks to go through the container */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-proof-toast {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(30, 35, 80, 0.95), rgba(15, 20, 60, 0.9));
    backdrop-filter: blur(8px);
    border: 2px solid var(--ff-blue);
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6), 0 0 15px rgba(79, 195, 247, 0.6);
    width: 320px;
    max-width: 85vw;
    animation: slideInUp 0.5s ease-out forwards, slideOutDown 0.5s ease-in 5.5s forwards;
    pointer-events: all;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.social-proof-toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--ff-yellow), var(--ff-orange));
    box-shadow: 0 0 8px var(--ff-yellow);
    animation: progress-bar-timer 5s linear forwards;
    transform-origin: left;
}

@keyframes progress-bar-timer {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

.toast-image-container {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    position: relative;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from var(--angle), transparent 25%, var(--ff-blue), var(--ff-yellow), transparent 75%);
    animation: rotate 4s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.toast-image-container::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: radial-gradient(circle, rgba(13, 26, 58, 0.9) 0%, rgba(10, 10, 30, 1) 70%);
    border-radius: 50%;
    z-index: 1;
}

.toast-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
    animation: float-image 3s ease-in-out infinite;
    transform: scale(1.4);
}

.toast-text {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
}

.toast-text strong {
    font-family: 'Lilita One', cursive;
    font-size: 17px;
    letter-spacing: 0.5px;
    color: var(--accent-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7), 0 0 4px var(--accent-color);
}

.toast-text p {
    margin: 0;
    opacity: 0.9;
}

.toast-region {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    margin-top: 3px;
    opacity: 0.7;
    font-weight: 500;
}

.toast-region svg {
    stroke: var(--ff-blue);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(50px);
    }
}

/* Responsive for Social Proof Toast */
@media screen and (max-width: 480px) {
    #social-proof-container {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        align-items: center;
        bottom: 15px;
    }
    .social-proof-toast {
        width: 100%;
    }
}

#adblock-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#adblock-modal.visible {
    opacity: 1;
    visibility: visible;
}

#adblock-modal .modal-content {
    border-color: var(--discount-bg);
    box-shadow: 0 0 30px rgba(211, 47, 47, 0.7), 0 0 10px rgba(255, 255, 255, 0.2) inset;
}

#adblock-modal .modal-title-header {
    color: var(--discount-bg);
    text-shadow: 0 0 8px rgba(255, 82, 82, 0.8);
}

#recheck-adblock-btn {
    font-family: 'Lilita One', cursive;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background: linear-gradient(180deg, var(--ff-blue) 0%, #0d47a1 100%);
    color: white;
    box-shadow: 0 4px 0 #0d1a3a;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#recheck-adblock-btn:hover {
    filter: brightness(1.1);
}

#recheck-adblock-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #0d1a3a;
}