:root {
    --primary: #00b0f4;
    --primary-dark: #0087c4;
    --secondary: #ff4655;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --vbucks: #00b0f4;
    
    /* Rarity Colors */
    --rarity-common: #b0c3d9;
    --rarity-uncommon: #5e9e5e;
    --rarity-rare: #4a92b7;
    --rarity-epic: #9b4dca;
    --rarity-legendary: #e3ab3b;
    --rarity-mythic: #e34d3b;
    --rarity-icon: #3b8de3;
    --rarity-dark: #3b3be3;
    --rarity-marvel: #e33b3b;
    --rarity-dc: #3b3be3;
    --rarity-shadow: #a335ee;
    --rarity-frozen: #00b3ff;
    --rarity-lava: #ff4500;
    --rarity-slurp: #00f0ff;
    --rarity-icon-series: #3b8de3;
    --rarity-star-wars: #ffe81f;
}

body {
    font-family: 'Barlow', sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Topbar Styles */
.topbar {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 100;
    border-bottom: 2px solid var(--primary);
    backdrop-filter: blur(10px);
}

.topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info h2 {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.vbucks-display {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    border: 1px solid var(--primary);
}

.vbucks-icon {
    color: var(--vbucks);
    font-weight: bold;
}

/* Creator Code Form */
.creator-code-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.creator-code-form form {
    display: flex;
    gap: 10px;
}

.creator-code-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 8px 15px;
    color: white;
    font-family: inherit;
    min-width: 200px;
    transition: all 0.3s;
    outline: none;
    width: 150px;
}

.creator-code-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(253, 187, 45, 0.3);
}

.creator-code-form button {
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Barlow', sans-serif;
}

.creator-code-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Shop Header */
.shop-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://cdn2.unrealengine.com/14br-consolidated-1kp-header-1920x1080-c5a8660e5f8e.jpg') center/cover;
    position: relative;
    margin-bottom: 30px;
}

.shop-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, var(--darker));
}

.shop-header h1 {
    font-size: 3.5rem;
    color: var(--primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    margin-bottom: 10px;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.shop-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    opacity: 0.8;
}

.refresh-timer {
    background: rgba(0, 0, 40, 0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 0 auto;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 4px 15px rgba(0, 140, 255, 0.3);
    border: 1px solid rgba(0, 176, 244, 0.3);
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.refresh-timer span {
    color: var(--primary);
    font-weight: 700;
}

/* Error Message */
.error-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--danger);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 100;
    animation: slideIn 0.3s, fadeOut 0.3s 3s forwards;
    max-width: 800px;
    text-align: center;
    font-weight: 600;
}

@keyframes slideIn {
    from { top: -100px; opacity: 0; }
    to { top: 20px; opacity: 1; }
}

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

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

/* Search Bar */
.search-bar {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    border: 2px solid rgba(253, 187, 45, 0.3);
}

.search-bar input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 176, 244, 0.3);
    border-color: var(--primary);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Shop Tabs */
.shop-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 0 20px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--primary);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
    background: var(--primary);
    color: #1a1a2e;
    font-weight: bold;
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    display: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* Shop Container */
.shop-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 50px;
}

.shop-item {
    background: rgba(0, 0, 40, 0.5);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(253, 187, 45, 0.1);
    position: relative;
}

.shop-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(253, 187, 45, 0.2);
    border-color: var(--primary);
}

/* Item Image Container */
.item-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
    background-color: #2a2a40;
    height: 250px;
}

.item-image-container.loading {
    background: linear-gradient(90deg, #2a2a40 25%, #3a3a5a 50%, #2a2a40 75%);
    background-size: 400% 100%;
    animation: loading 1.5s infinite;
}

.item-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.5s;
}

.item-image-container.loading img {
    opacity: 0;
}

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

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

/* Item Info */
.item-info {
    padding: 20px;
}

.item-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: white;
}

.item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vbucks);
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.item-rarity {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Item Actions */
.item-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.purchase-btn, .gift-btn, .owned-btn, .refund-btn {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    box-sizing: border-box;
    font-size: 1rem;
    border: none;
}

.purchase-btn {
    background: var(--primary);
    color: #1a1a2e;
}

.purchase-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 187, 45, 0.4);
}

.purchase-btn::before {
    content: '🛒';
    font-size: 1.1em;
}

.gift-btn {
    background: var(--secondary);
    color: white;
}

.gift-btn:hover {
    background: #e03a48;
}

.gift-btn::before {
    content: '🎁';
    font-size: 1.1em;
}

.owned-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: not-allowed;
    opacity: 0.7;
    width: 100%;
}

.refund-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
    width: 100%;
    margin-top: 10px;
}

.refund-btn:hover {
    background: rgba(239, 68, 68, 0.4);
}

.refund-btn::before {
    content: '↩️';
    font-size: 1.1em;
}

.time-remaining {
    font-size: 0.9rem;
    color: #b0c3d9;
    margin: 5px 0;
}

/* Loading and Empty States */
.loading-shop {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: var(--primary);
    font-size: 1.2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 176, 244, 0.2);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: var(--gray);
    font-size: 1.1rem;
}

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

/* Direct Purchase Tab */
.custom-purchase-form {
    background: var(--dark);
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.custom-purchase-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
    text-align: center;
}

.custom-purchase-form input {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.custom-purchase-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px var(--primary);
}

.custom-purchase-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s;
    margin-top: 10px;
}

.custom-purchase-btn:hover {
    background: var(--primary-dark);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--dark);
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    overflow: auto;
    display: flex;
    animation: modalFadeIn 0.3s;
    border: 2px solid var(--primary);
}

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

.modal-left {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.3);
}

.modal-right {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(0,0,0,0.5);
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-indicator {
    text-align: center;
    margin-top: 15px;
    font-size: 1rem;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--primary);
    transform: scale(1.05);
}

.modal-header {
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 0 10px;
    text-align: center;
}

.modal-rarity {
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
}

.modal-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.modal-video-container {
    margin-top: 20px;
}

.modal-video {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 10px;
    background: #000;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(253, 187, 45, 0.3);
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vbucks);
}

.modal-purchase-btn, .modal-gift-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-purchase-btn {
    background: var(--primary);
    color: #1a1a2e;
}

.modal-purchase-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 187, 45, 0.4);
}

.modal-gift-btn {
    background: var(--secondary);
    color: white;
    margin-left: 10px;
}

.modal-gift-btn:hover {
    background: #e03a48;
}

/* Full Image View */
.full-image-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.full-image-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.full-image-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
}

.full-image-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
}

.full-image-close:hover {
    color: var(--primary);
}

/* Gift Modal Styles */
.gift-modal .modal-content {
    max-width: 800px;
    width: 90%;
    min-height: 600px;
    max-height: 80vh;
    padding: 30px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.gift-item-name {
    font-size: 28px;
    margin-bottom: 10px;
    color: #fff;
    text-align: center;
    font-weight: 700;
}

.gift-price {
    font-size: 22px;
    margin-bottom: 30px;
    color: #e3ab3b;
    font-weight: bold;
    text-align: center;
}

.friends-list-container {
    flex-grow: 1;
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
    background: rgba(0, 0, 40, 0.5);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.friends-list-container h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
}

.friend-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: rgba(0, 0, 60, 0.7);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.friend-item:hover {
    background: rgba(0, 100, 200, 0.5);
    transform: translateY(-2px);
}

.friend-item.selected {
    background: rgba(0, 140, 255, 0.7);
    box-shadow: 0 0 10px rgba(0, 140, 255, 0.5);
    border: 1px solid rgba(0, 200, 255, 0.5);
}

.friend-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.friend-item .friend-name {
    flex-grow: 1;
    text-align: left;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 15px;
    background-color: #666;
}

.status-indicator.online {
    background-color: var(--success);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.7);
}

/* Gift Message */
.gift-message {
    margin: 25px 0;
}

.gift-message label {
    display: block;
    margin-bottom: 12px;
    color: #fff;
    font-size: 16px;
}

.gift-message textarea {
    width: 100%;
    height: 100px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 30, 0.7);
    color: white;
    resize: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.gift-message textarea:focus {
    outline: none;
    border-color: #0078d7;
    box-shadow: 0 0 10px rgba(0, 120, 215, 0.5);
}

/* Gift Wrap */
.gift-wrap-container {
    margin: 20px 0;
}

.gift-wrap-container label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 16px;
}

.gift-wrap-container input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 30, 0.7);
    color: white;
    font-size: 14px;
}

.gift-wrap-container input:focus {
    outline: none;
    border-color: #0078d7;
    box-shadow: 0 0 10px rgba(0, 120, 215, 0.5);
}

.gift-wrap-examples {
    margin-top: 8px;
    color: #aaa;
    font-size: 12px;
}

/* Gift Search */
.gift-search-bar {
    margin-bottom: 20px;
}

.gift-search-bar input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 30, 0.7);
    color: white;
    font-size: 14px;
}

.gift-search-bar input:focus {
    outline: none;
    border-color: #0078d7;
    box-shadow: 0 0 10px rgba(0, 120, 215, 0.5);
}

/* Gift Modal Footer */
.gift-modal .modal-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.cancel-btn {
    background-color: #666;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background-color: #777;
}

.confirm-gift-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.confirm-gift-btn:hover {
    background: linear-gradient(135deg, #5CBF60 0%, #3E8D42 100%);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    transform: translateY(-2px);
}

.confirm-gift-btn:disabled {
    background: #666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Loading and error states */
.loading {
    color: #00a8ff;
    text-align: center;
    padding: 30px;
    font-size: 16px;
}

.error {
    color: #ff4444;
    text-align: center;
    padding: 30px;
    font-size: 16px;
}

.no-friends, .no-results {
    color: #aaa;
    text-align: center;
    padding: 30px;
    font-size: 16px;
}

/* Confirmation Dialog */
.confirmation-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirmation-dialog.active {
    opacity: 1;
    visibility: visible;
}

.confirmation-content {
    background: var(--dark);
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 176, 244, 0.3);
}

.confirmation-dialog.active .confirmation-content {
    transform: translateY(0);
}

.confirmation-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: var(--primary);
}

.confirmation-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.confirmation-message {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.confirmation-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.confirm-btn {
    background: var(--primary);
    color: white;
}

.confirm-btn:hover {
    background: var(--primary-dark);
}

/* Gift Confirmation Specific Styles */
.gift-confirmation .confirmation-icon {
    color: var(--secondary);
}

.gift-confirmation .confirm-btn {
    background: var(--secondary);
}

.gift-confirmation .confirm-btn:hover {
    background: #e03a48;
}

.gift-preview {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 60, 0.5);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.gift-preview img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 15px;
    object-fit: cover;
}

.gift-preview-info {
    text-align: left;
}

.gift-preview-name {
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.gift-preview-price {
    color: var(--vbucks);
    font-weight: 600;
}

.gift-recipient {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gift-recipient-name {
    font-weight: 600;
    color: white;
}

/* Success Modal Styles */
.success-modal, .refund-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    flex-direction: column;
    animation: fadeIn 0.3s;
}

.success-content, .refund-success-content {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    animation: gradientBG 8s ease infinite;
    background-size: 400% 400%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}

.refund-success-content {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #10b981);
}

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

.success-icon, .refund-success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 1s infinite alternate;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.success-title, .refund-success-title {
    color: #fff;
    margin-bottom: 20px;
    font-size: 2.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.success-item {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.success-message {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 1.2rem;
    opacity: 0.9;
}

.success-close-btn {
    background: white;
    color: #1a1a2e;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    overflow: hidden;
    font-size: 1.2rem;
}

.success-close-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Confetti */
.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confettiFall 5s linear forwards;
    z-index: 0;
}

@keyframes confettiFall {
    0% { 
        transform: translateY(-100px) rotate(0deg); 
        opacity: 1;
    }
    100% { 
        transform: translateY(100vh) rotate(360deg); 
        opacity: 0;
    }
}

/* Rarity Classes */
.rarity-common { 
    background-color: var(--rarity-common); 
    color: #1a1a2e; 
}
.rarity-uncommon { 
    background-color: var(--rarity-uncommon); 
    color: white; 
}
.rarity-rare { 
    background-color: var(--rarity-rare); 
    color: white; 
}
.rarity-epic { 
    background-color: var(--rarity-epic); 
    color: white; 
}
.rarity-legendary { 
    background-color: var(--rarity-legendary); 
    color: #1a1a2e; 
}
.rarity-mythic { 
    background-color: var(--rarity-mythic); 
    color: white; 
}
.rarity-icon { color: var(--rarity-icon); }
.rarity-dark { color: var(--rarity-dark); }
.rarity-marvel { color: var(--rarity-marvel); }
.rarity-dc { color: var(--rarity-dc); }
.rarity-shadow { color: var(--rarity-shadow); }
.rarity-frozen { color: var(--rarity-frozen); }
.rarity-lava { color: var(--rarity-lava); }
.rarity-slurp { color: var(--rarity-slurp); }
.rarity-icon-series { color: var(--rarity-icon-series); }
.rarity-star-wars { color: var(--rarity-star-wars); }

/* Responsive Styles */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }
    
    .creator-code-form {
        width: 100%;
        justify-content: center;
    }
    
    .creator-code-form input {
        width: 60%;
    }
    
    .shop-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .modal-content {
        flex-direction: column;
        max-height: 90vh;
    }
    
    .modal-left, .modal-right {
        padding: 15px;
    }
    
    .modal-image-container {
        height: 300px;
    }
    
    .modal-video {
        height: 250px;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
    
    .success-title, .refund-success-title {
        font-size: 2rem;
    }
    
    .success-item {
        font-size: 1.4rem;
    }
    
    .gift-modal .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .friend-item {
        padding: 10px 12px;
    }
    
    .friend-item img {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
    
    .confirmation-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .creator-code-form {
        flex-direction: column;
        gap: 8px;
    }
    
    .creator-code-form input,
    .creator-code-form button {
        width: 100%;
    }
    
    .shop-container {
        grid-template-columns: 1fr;
    }
    
    .item-actions {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .modal-purchase-btn, .modal-gift-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .confirmation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .confirmation-btn {
        width: 100%;
    }
    
    .shop-header h1 {
        font-size: 2.5rem;
    }
    
    .modal-header {
        text-align: center;
    }
    
    .modal-rarity {
        margin-left: 0;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 15px;
    }
}