/* digital-store-modals.css */
/* Modal styles: Product Preview, Cart, Favorites, Checkout, Game */

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 30px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    scrollbar-width: none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.product-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.product-modal.closing {
    opacity: 0;
}

.product-modal.closing .modal-content {
    transform: scale(0.8) translateY(50px);
}

body.dark-mode .modal-content {
    background: var(--dark-teal);
    color: var(--text-light);
}

/* Modal Scroll Progress */
.modal-scroll-progress {
    position: sticky;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-1);
    z-index: 10;
    transition: width 0.1s ease;
    border-radius: 0 0 3px 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(123, 194, 187, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
    border: 2px solid transparent;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
    border-color: var(--primary);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 50px;
}

.product-gallery {
    position: sticky;
    top: 50px;
    height: fit-content;
}

.main-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    background: rgba(123, 194, 187, 0.05);
}

.main-product-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-image-container:hover .main-product-image {
    transform: scale(1.05);
}

.big-ratio-image-container {
    width: 100%;
    margin: 25px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.big-ratio-image {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.thumbnail {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 3px solid transparent;
}

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

.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(123, 194, 187, 0.4);
}

.thumbnail img {
    width: 100%;
    height: 70px;
    object-fit: cover;
}

.product-details {
    padding-top: 20px;
}

.product-category-link {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-product-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(123, 194, 187, 0.1);
    color: var(--primary);
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.category-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.category-link:hover {
    transform: translateX(5px);
}

.modal-product-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--dark-teal);
    line-height: 1.2;
}

body.dark-mode .modal-product-title {
    color: var(--text-light);
}

.modal-product-price {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.product-meta-enhanced {
    background: rgba(123, 194, 187, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 35px;
}

.meta-row {
    display: flex;
    gap: 35px;
    margin-bottom: 15px;
}

.meta-row:last-child {
    margin-bottom: 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-icon {
    font-size: 1.8rem;
}

.meta-content {
    display: flex;
    flex-direction: column;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.meta-label {
    font-size: 0.85rem;
    opacity: 0.7;
}

.file-types-section {
    margin: 35px 0;
    padding: 25px;
    background: rgba(123, 194, 187, 0.05);
    border-radius: 15px;
}

.file-types-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

.file-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.file-type-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .file-type-item {
    background: rgba(255, 255, 255, 0.05);
}

.file-type-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(123, 194, 187, 0.3);
}

.file-type-item-icon {
    font-size: 1.5rem;
}

.file-type-info h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.file-type-info p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.product-description-full {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 35px;
}

.additional-info-section {
    background: rgba(226, 191, 148, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 35px 0;
}

.additional-info-section h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--gold);
}

.additional-info-section p {
    font-size: 1rem;
    line-height: 1.6;
}

.product-features {
    margin-bottom: 35px;
}

.features-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--primary);
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    font-size: 1rem;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    width: 22px;
    height: 22px;
    background: rgba(123, 194, 187, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.video-section {
    margin: 35px 0;
    padding: 35px;
    background: rgba(123, 194, 187, 0.05);
    border-radius: 20px;
}

.video-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.purchase-section {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 25px;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 5;
    margin-top: 40px;
    flex-wrap: wrap;
}

body.dark-mode .purchase-section {
    background: rgba(23, 76, 84, 0.95);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(123, 194, 187, 0.1);
    border-radius: 50px;
    padding: 5px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    color: var(--text-dark);
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.dark-mode .quantity-input {
    color: var(--text-light);
}

.btn-purchase {
    flex: 1;
    padding: 15px 30px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 150px;
}

.btn-purchase:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(123, 194, 187, 0.4);
}

.btn-buy-now {
    background: var(--gradient-3);
}

.btn-buy-now:hover {
    box-shadow: 0 15px 30px rgba(226, 191, 148, 0.4);
}

.btn-favorite-modal {
    padding: 15px;
    background: rgba(233, 30, 99, 0.1);
    border: 2px solid var(--favorite);
    color: var(--favorite);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 20px;
}

.btn-favorite-modal:hover {
    background: var(--favorite);
    color: white;
    transform: scale(1.1);
}

.btn-favorite-modal.active {
    background: var(--favorite);
    color: white;
}

.related-products {
    padding: 50px;
    background: rgba(123, 194, 187, 0.03);
    border-radius: 30px 30px 0 0;
}

.related-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 35px;
    text-align: center;
    color: var(--primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

/* Shopping Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    z-index: 2001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

body.dark-mode .cart-sidebar {
    background: var(--dark-teal);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid rgba(123, 194, 187, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.cart-close {
    width: 35px;
    height: 35px;
    background: rgba(123, 194, 187, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cart-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.cart-empty {
    text-align: center;
    padding: 50px 20px;
    opacity: 0.6;
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(123, 194, 187, 0.05);
    border-radius: 15px;
    margin-bottom: 15px;
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
}

.cart-item:hover {
    transform: translateX(-5px);
    box-shadow: 5px 5px 20px rgba(123, 194, 187, 0.2);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-teal);
    font-size: 0.95rem;
}

body.dark-mode .cart-item-title {
    color: var(--text-light);
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item-favorite {
    color: var(--favorite);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 18px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 30, 99, 0.1);
    border-radius: 50%;
}

.cart-item-favorite:hover {
    transform: scale(1.2);
    background: rgba(233, 30, 99, 0.2);
}

.cart-item-favorite.active {
    background: var(--favorite);
    color: white;
}

.cart-item-remove {
    color: var(--error);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 20px;
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid rgba(123, 194, 187, 0.2);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.total-label {
    font-size: 1.1rem;
    font-weight: 600;
}

.total-value {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(123, 194, 187, 0.4);
}

/* Cart Button */
.cart-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(123, 194, 187, 0.4);
    transition: var(--transition-smooth);
    z-index: 999;
}

.cart-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(123, 194, 187, 0.6);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: var(--error);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

/* Favorites Sidebar */
.favorites-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    z-index: 2001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

body.dark-mode .favorites-sidebar {
    background: var(--dark-teal);
}

.favorites-sidebar.active {
    right: 0;
}

.favorites-header {
    padding: 25px;
    border-bottom: 1px solid rgba(123, 194, 187, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.favorites-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--favorite);
}

.favorites-close {
    width: 35px;
    height: 35px;
    background: rgba(233, 30, 99, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.favorites-close:hover {
    background: var(--favorite);
    color: white;
    transform: rotate(90deg);
}

.favorites-items {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.favorites-empty {
    text-align: center;
    padding: 50px 20px;
    opacity: 0.6;
}

.favorites-empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.favorite-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(233, 30, 99, 0.05);
    border-radius: 15px;
    margin-bottom: 15px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.favorite-item:hover {
    transform: translateX(-5px);
    box-shadow: 5px 5px 20px rgba(233, 30, 99, 0.2);
}

.favorite-item-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

.favorite-item-details {
    flex: 1;
}

.favorite-item-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-teal);
    font-size: 0.95rem;
}

body.dark-mode .favorite-item-title {
    color: var(--text-light);
}

.favorite-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.favorite-item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.favorite-item-cart {
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 18px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 194, 187, 0.1);
    border-radius: 50%;
}

.favorite-item-cart:hover {
    transform: scale(1.2);
    background: var(--primary);
    color: white;
}

.favorite-item-remove {
    color: var(--error);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 20px;
}

.favorite-item-remove:hover {
    transform: scale(1.2);
}

/* Favorites Button */
.favorites-button {
    position: fixed;
    bottom: 25px;
    right: 100px;
    width: 60px;
    height: 60px;
    background: var(--gradient-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(226, 191, 148, 0.4);
    transition: var(--transition-smooth);
    z-index: 999;
}

.favorites-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(226, 191, 148, 0.6);
}

.favorites-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: var(--favorite);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 3001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
}

.checkout-content {
    background: white;
    border-radius: 30px;
    max-width: 500px;
    width: 100%;
    padding: 40px 30px;
    position: relative;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.checkout-content::-webkit-scrollbar {
    display: none;
}

.checkout-modal.active .checkout-content {
    transform: scale(1);
}

body.dark-mode .checkout-content {
    background: var(--dark-teal);
}

.checkout-header {
    text-align: center;
    margin-bottom: 35px;
}

.checkout-title {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(123, 194, 187, 0.05);
    border: 2px solid rgba(123, 194, 187, 0.2);
    border-radius: 15px;
    font-size: 16px;
    transition: var(--transition-smooth);
    outline: none;
    color: var(--text-dark);
}

body.dark-mode .form-input {
    color: var(--text-light);
    background: rgba(123, 194, 187, 0.1);
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(123, 194, 187, 0.1);
    transform: translateY(-2px);
}

.custom-select {
    position: relative;
}

.select-selected {
    padding: 15px 20px;
    background: rgba(123, 194, 187, 0.05);
    border: 2px solid rgba(123, 194, 187, 0.2);
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.select-selected:hover,
.select-selected.active {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.select-arrow {
    transition: transform 0.3s ease;
}

.select-selected.active .select-arrow {
    transform: rotate(180deg);
}

.select-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    margin-top: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    max-height: 250px;
    overflow-y: auto;
}

body.dark-mode .select-items {
    background: var(--dark-teal);
}

.select-items.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.select-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.select-item:hover {
    background: rgba(123, 194, 187, 0.1);
    padding-left: 30px;
}

.discount-input-group {
    display: flex;
    gap: 12px;
}

.discount-input {
    flex: 1;
}

.apply-discount-btn {
    padding: 15px 25px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.apply-discount-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(123, 194, 187, 0.4);
}

.discount-applied {
    color: var(--success);
    font-size: 0.9rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.discount-error {
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.order-summary {
    background: rgba(123, 194, 187, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin: 35px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(123, 194, 187, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
    padding-top: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.complete-order-btn {
    width: 100%;
    padding: 20px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.complete-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(123, 194, 187, 0.4);
}

.complete-order-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.complete-order-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Success Animation */
.success-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 4000;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-animation.show {
    transform: translate(-50%, -50%) scale(1);
}

.success-circle {
    width: 150px;
    height: 150px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(123, 194, 187, 0.5);
    animation: success-pulse 1s ease;
}

@keyframes success-pulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon {
    font-size: 4rem;
    color: white;
    animation: check-mark 0.8s ease 0.3s both;
}

@keyframes check-mark {
    0% { transform: scale(0) rotate(-45deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Game Section */
.game-section {
    padding: 80px var(--desktop-padding);
    background: linear-gradient(135deg, rgba(123, 194, 187, 0.05) 0%, rgba(226, 191, 148, 0.05) 100%);
    border-radius: 40px;
    margin: 0 var(--desktop-padding) 80px;
}

.game-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.game-title {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.game-description {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

.game-controls {
    margin-bottom: 30px;
}

.game-start-btn {
    padding: 15px 40px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.game-start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(123, 194, 187, 0.4);
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 350px;
    margin: 0 auto 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

body.dark-mode .game-board {
    background: rgba(255, 255, 255, 0.05);
}

.game-card {
    aspect-ratio: 1;
    background: var(--gradient-1);
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(123, 194, 187, 0.3);
}

.game-card:hover:not(.flipped):not(.matched) {
    transform: scale(1.05);
}

.game-card.flipped {
    transform: rotateY(180deg);
}

.game-card.matched {
    animation: match-success 0.6s ease;
    pointer-events: none;
    opacity: 0.7;
}

@keyframes match-success {
    0% { transform: rotateY(180deg) scale(1); }
    50% { transform: rotateY(180deg) scale(1.2); }
    100% { transform: rotateY(180deg) scale(1); }
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.card-front {
    background: var(--gradient-1);
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.card-back {
    background: white;
    transform: rotateY(180deg);
    font-size: 2rem;
    box-shadow: inset 0 0 0 3px var(--primary);
}

body.dark-mode .card-back {
    background: var(--dark-teal);
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
}

.game-stat {
    text-align: center;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
}

.game-result {
    margin-top: 30px;
    padding: 25px;
    background: rgba(123, 194, 187, 0.1);
    border-radius: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.game-result.show {
    opacity: 1;
    transform: translateY(0);
}

.discount-code-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.discount-code {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.copy-code-btn {
    padding: 10px 15px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-code-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(123, 194, 187, 0.4);
}

.code-validity {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

#codeTimer {
    font-weight: 700;
    color: var(--primary);
}

.code-message {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

#continueCode {
    display: block;
    margin: 15px auto;
    padding: 12px 30px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

#continueCode:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(123, 194, 187, 0.4);
}