* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Loading Screen */
.loading-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2147483647 !important;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    pointer-events: all !important;
    overflow: hidden !important;
}

.loading-screen.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.loading-content {
    text-align: center;
    position: relative;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(220, 38, 38, 0.2);
    border-top: 4px solid rgba(220, 38, 38, 1);
    border-right: 4px solid rgba(22, 163, 74, 0.5);
    border-bottom: 4px solid rgba(251, 191, 36, 0.5);
    border-radius: 50%;
    animation: spinLoader 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spinLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, #ffffff 0%, #dc2626 25%, #16a34a 50%, #fbbf24 75%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

:root {
    --primary-color: #dc2626;
    --primary-hover: #b91c1c;
    --success-color: #16a34a;
    --error-color: #e17055;
    --bg-color: #0a0f1a;
    --card-bg: #1a1f2e;
    --card-border: #2d3d44;
    --text-primary: #ffffff;
    --text-secondary: #b8b8c8;
    --input-bg: #252540;
    --input-border: #3d3d5c;
    --input-focus: #dc2626;
    --christmas-gold: #fbbf24;
    --christmas-green: #16a34a;
    --christmas-red: #dc2626;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000000;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    display: grid;
    place-items: center;
}

/* Removed all animated background effects */

/* Top-right user info responsive */
@media (max-width: 768px) {
    #topUserInfo {
        top: 10px;
        right: 10px;
    }
    
    #topUserInfo > div {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    #topUserInfo .btn {
        width: 100%;
    }
}

.container {
    width: 600px !important;
    max-width: 90vw !important;
    min-width: 320px;
    margin: 20px auto !important;
    position: relative;
    z-index: 1;
    text-align: left;
    flex-shrink: 0;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(138, 43, 226, 0.1);
    position: relative;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeIn 0.5s ease-out;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(138, 43, 226, 0.2),
        0 0 40px rgba(138, 43, 226, 0.1);
}

.card:hover::after {
    opacity: 0.4;
}

/* Ensure header content is above any overlay effects with proper isolation */
.card .header {
    position: relative;
    z-index: 10;
    padding: 8px 0;
    overflow: visible;
}

.card .header h1 {
    position: relative;
    z-index: 11;
    color: #ffffff !important;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 0 4px rgba(0, 0, 0, 0.3);
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    filter: none !important;
    animation: none !important;
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
}

/* Completely disable hover effects on header to prevent blurring */
.card:hover .header::before,
.card:hover .header::after {
    display: none !important;
}

.card:hover .header h1 {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    filter: none !important;
    animation: none !important;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 0 4px rgba(0, 0, 0, 0.3);
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.card > * {
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 12px 0;
    overflow: visible;
    width: 100%;
}

.header h1 {
    font-size: 34px;
    margin-bottom: 16px;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    animation: none !important;
    transition: none;
    padding: 8px 0;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 0 4px rgba(0, 0, 0, 0.3);
    filter: none !important;
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
    width: 100%;
    display: block;
}

.card:hover .header h1 {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    filter: none !important;
    animation: none !important;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 0 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: 8px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
}

.required {
    color: var(--error-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--input-bg) !important;
    border: 2px solid var(--input-border) !important;
    border-radius: 12px;
    color: var(--text-primary) !important;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="url"]:hover,
select:hover,
textarea:hover {
    border-color: rgba(220, 38, 38, 0.6) !important;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(220, 38, 38, 0.25) !important;
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--input-bg) 0%, rgba(37, 37, 64, 0.98) 100%) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: var(--input-focus) !important;
    box-shadow: 
        0 0 0 4px rgba(220, 38, 38, 0.2),
        0 0 30px rgba(220, 38, 38, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-3px) scale(1.01);
    background: linear-gradient(135deg, var(--input-bg) 0%, rgba(37, 37, 64, 0.95) 100%) !important;
}

/* Select dropdown styling - Dark theme */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%238a2be2' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 50px;
    cursor: pointer;
}

select::-ms-expand {
    display: none;
}

/* Style select options to match dark theme */
select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
}

select option:checked {
    background: rgba(138, 43, 226, 0.3);
    color: #ffffff;
}

select option:hover {
    background: rgba(138, 43, 226, 0.2);
}

/* Custom Checkbox Styling */
input[type="checkbox"] {
    cursor: pointer;
    width: 20px;
    height: 20px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    margin: 0;
}

input[type="checkbox"]:hover {
    border-color: rgba(220, 38, 38, 0.6);
    background: linear-gradient(135deg, var(--input-bg) 0%, rgba(37, 37, 64, 0.98) 100%);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
    transform: scale(1.05);
}

input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 3px rgba(220, 38, 38, 0.2),
        0 4px 12px rgba(220, 38, 38, 0.4);
    transform: scale(1.1);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(220, 38, 38, 0.3),
        0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Textarea specific styling */
textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
    font-family: inherit;
}

textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.status-message {
    margin-top: 8px;
    font-size: 13px;
    min-height: 20px;
    transition: all 0.3s ease;
}

.status-message.info {
    color: var(--primary-color);
}

.status-message.success {
    color: var(--success-color);
}

.status-message.error {
    color: var(--error-color);
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(138, 43, 226, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(138, 43, 226, 0.25);
    border-color: rgba(138, 43, 226, 0.5);
    transform: translateY(-2px);
}

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
    display: inline-block;
}

.result-message {
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.3s ease-out;
}

.result-message.error {
    background: rgba(225, 112, 85, 0.15);
    color: var(--error-color);
    border: 1px solid rgba(225, 112, 85, 0.3);
}

.result-message.success {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.success-card {
    text-align: center;
}

.success-header {
    margin-bottom: 32px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: fadeIn 0.5s ease-out;
}

.success-header h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.success-content {
    margin-bottom: 32px;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.product-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.product-info span {
    color: var(--text-secondary);
    text-align: right;
    word-break: break-word;
    max-width: 60%;
}

.code-display {
    background: var(--input-bg);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin: 24px 0;
}

.code-display code {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    display: block;
    margin: 12px 0;
}

.status-card {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    text-align: left;
}

.status-container {
    display: flex;
    flex-direction: column;
}

.status-left {
    flex: 1;
}

.status-header h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.status-content {
    background: rgba(138, 43, 226, 0.1);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.status-chat-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 600px;
}

.chat-sidebar-header h3 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 18px;
}

.chat-sidebar-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
    padding-right: 8px;
}

.chat-sidebar-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-sidebar-messages::-webkit-scrollbar-track {
    background: rgba(138, 43, 226, 0.1);
    border-radius: 3px;
}

.chat-sidebar-messages::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.3);
    border-radius: 3px;
}

.chat-sidebar-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 43, 226, 0.5);
}

.chat-message {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.chat-message.user {
    background: rgba(138, 43, 226, 0.15);
    border-color: rgba(138, 43, 226, 0.3);
}

.chat-message.admin {
    background: rgba(0, 184, 148, 0.1);
    border-color: rgba(0, 184, 148, 0.2);
}

.chat-message-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.chat-sidebar-form {
    display: flex;
    gap: 8px;
}

.chat-sidebar-form input {
    flex: 1;
    padding: 10px 14px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.chat-sidebar-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.footer {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--card-border);
}

.help-text {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(12px) saturate(180%);
    animation: modalBackdropFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Confirm modals should appear above other modals */
#confirmCompleteModal,
#confirmDeleteModal {
    z-index: 10000 !important;
}

#confirmCompleteModal .modal-content,
#confirmDeleteModal .modal-content {
    position: relative;
    z-index: 10001;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Prevent modal scroll from affecting body */
.modal-content {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.modal {
    overscroll-behavior: contain;
}

@keyframes modalBackdropFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(12px) saturate(180%);
    }
}

.modal-content {
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(20, 25, 35, 0.98) 100%);
    border: 2px solid var(--card-border);
    border-radius: 24px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(220, 38, 38, 0.2),
        0 0 60px rgba(220, 38, 38, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.payment-modal-content {
    max-width: 750px;
    animation: paymentModalPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(145deg, rgba(26, 31, 46, 0.98) 0%, rgba(20, 25, 35, 0.98) 100%);
    border: 3px solid var(--card-border);
    box-shadow: 
        0 30px 100px rgba(0, 0, 0, 0.8),
        0 0 0 2px rgba(220, 38, 38, 0.3),
        0 0 80px rgba(220, 38, 38, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

@keyframes paymentModalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(50px) rotateX(-15deg);
        filter: blur(10px);
    }
    50% {
        transform: scale(1.05) translateY(-10px) rotateX(2deg);
    }
    75% {
        transform: scale(0.98) translateY(5px) rotateX(-1deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
        filter: blur(0);
    }
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.5);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 38, 38, 0.7);
}

.modal-header {
    margin-bottom: 32px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(220, 38, 38, 0.2);
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.modal-header h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, rgba(220, 38, 38, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(184, 28, 28, 0.2) 100%);
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    color: var(--text-primary);
    line-height: 1;
    padding: 0;
    z-index: 10;
    margin: 0;
}

/* Fix modal-close positioning in confirm modals */
#confirmCompleteModal .modal-close,
#confirmDeleteModal .modal-close {
    top: 20px;
    right: 20px;
    position: absolute;
}

.modal-close:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-color: var(--primary-color);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Support Modal */
.support-modal-content {
    max-width: 700px;
    max-height: 85vh;
}

.support-content {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.support-messages {
    flex: 1;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    background: rgba(138, 43, 226, 0.05);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(138, 43, 226, 0.1);
}

.support-messages::-webkit-scrollbar {
    width: 6px;
}

.support-messages::-webkit-scrollbar-track {
    background: rgba(138, 43, 226, 0.1);
    border-radius: 3px;
}

.support-messages::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.3);
    border-radius: 3px;
}

.support-message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
}

.support-message.user {
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.3);
    margin-left: auto;
    text-align: right;
}

.support-message.admin {
    background: rgba(0, 184, 148, 0.15);
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.support-message-content {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 4px;
}

.support-message-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.support-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
    font-style: italic;
}

/* Products Modal */
.products-modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.products-modal-content .modal-header {
    flex-shrink: 0;
}

.products-modal-content .products-controls {
    flex-shrink: 0;
}

.products-modal-content #productsCarousel,
.products-modal-content #productsGrid {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.products-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

.categories-container {
    margin-bottom: 20px;
}

.categories-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.category-btn {
    padding: 8px 16px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.5);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

/* Admin Dashboard Tabs */
.admin-tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.admin-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(220, 38, 38, 0.1);
}

.admin-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(220, 38, 38, 0.1);
}

/* Announcements Display */
.announcements-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    max-width: 800px;
    width: 95%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.announcement-card {
    background: linear-gradient(145deg, rgba(26, 31, 46, 0.98) 0%, rgba(20, 25, 35, 0.98) 100%);
    border: 4px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 0;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 0 2px rgba(220, 38, 38, 0.3),
        0 0 60px rgba(220, 38, 38, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    pointer-events: all;
    animation: announcementPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 8px solid var(--primary-color);
    backdrop-filter: blur(20px) saturate(180%);
    width: 100%;
    max-width: 800px;
    transform-origin: center;
    position: relative;
    overflow: hidden;
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%,
        var(--christmas-gold) 25%,
        var(--success-color) 50%,
        var(--christmas-gold) 75%,
        var(--primary-color) 100%);
    background-size: 300% 100%;
    animation: shimmerBar 4s linear infinite;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.announcement-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes announcementPopIn {
    0% {
        opacity: 0;
        transform: scale(0.7) rotateY(-15deg) translateY(30px);
        filter: blur(8px);
    }
    50% {
        transform: scale(1.08) rotateY(3deg) translateY(-5px);
    }
    75% {
        transform: scale(0.98) rotateY(-1deg) translateY(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg) translateY(0);
        filter: blur(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

@keyframes shimmerBar {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.announcement-card.info {
    border-left-color: var(--primary-color);
}

.announcement-card.success {
    border-left-color: var(--success-color);
}

.announcement-card.warning {
    border-left-color: var(--christmas-gold);
}

.announcement-card.error {
    border-left-color: var(--error-color);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.announcement-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(220, 38, 38, 0.3);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(220, 38, 38, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.announcement-close {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.3) 0%, rgba(184, 28, 28, 0.3) 100%);
    border: 3px solid rgba(220, 38, 38, 0.5);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.announcement-close:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.5) 0%, rgba(184, 28, 28, 0.5) 100%);
    border-color: var(--primary-color);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

.announcement-message {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    padding-top: 12px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.products-search-container {
    flex: 1;
}

.products-search-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
}

.products-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(138, 43, 226, 0.05);
    padding: 24px;
    min-height: 500px;
    max-height: 600px;
    display: flex;
    align-items: center;
}

.products-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    gap: 0;
    width: 100%;
    height: 100%;
}

.product-carousel-item {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    flex-shrink: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-item {
    min-width: 100%;
    flex-shrink: 0;
    padding: 20px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    transition: all 0.3s ease;
    height: 100%;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    box-sizing: border-box;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.3);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: rgba(138, 43, 226, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
    white-space: nowrap;
    line-height: 1.2;
}

.product-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 63px; /* 3 lines * 1.5 line-height * 14px */
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(138, 43, 226, 0.1);
    gap: 12px;
    flex-wrap: wrap;
}

.product-footer > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.product-stock {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    white-space: nowrap;
}

.product-card.out-of-stock {
    opacity: 0.7;
}

.out-of-stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 68, 68, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-buy-btn {
    min-width: 100px;
    white-space: nowrap;
    padding: 10px 20px;
    font-size: 14px;
    flex-shrink: 0;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(138, 43, 226, 0.9);
    border: 2px solid var(--primary-color);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-arrow:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}

.carousel-arrow-left {
    left: 16px;
}

.carousel-arrow-right {
    right: 16px;
}

.carousel-arrow:disabled,
.carousel-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.products-grid-view {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    border-radius: 12px;
    background: rgba(138, 43, 226, 0.05);
    -webkit-overflow-scrolling: touch;
}

.products-grid-view::-webkit-scrollbar {
    width: 8px;
}

.products-grid-view::-webkit-scrollbar-track {
    background: rgba(138, 43, 226, 0.1);
    border-radius: 4px;
}

.products-grid-view::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.5);
    border-radius: 4px;
}

.products-grid-view::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 16px;
}

.products-grid .product-card {
    max-width: 100%;
    margin: 0;
}

.products-loading,
.products-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Payment Modal */
.payment-method-selection {
    margin-top: 32px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-method-option {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(26, 31, 46, 0.95) 100%);
    border: 2px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.payment-method-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.5s ease;
}

.payment-method-option:hover::before {
    left: 100%;
}

.payment-method-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(220, 38, 38, 0.35),
        0 0 0 2px rgba(220, 38, 38, 0.2);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(26, 31, 46, 0.95) 100%);
}

.payment-method-option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(26, 31, 46, 0.95) 100%);
    box-shadow: 
        0 12px 32px rgba(220, 38, 38, 0.5),
        0 0 0 3px rgba(220, 38, 38, 0.4),
        inset 0 0 30px rgba(220, 38, 38, 0.1);
    transform: translateY(-2px) scale(1.01);
}

.payment-method-option.selected::after {
    content: '✓';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--success-color) 0%, #15803d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
    animation: checkmarkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.method-icon {
    font-size: 40px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(184, 28, 28, 0.2) 100%);
    border-radius: 16px;
    flex-shrink: 0;
    border: 2px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-method-option:hover .method-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    border-color: var(--primary-color);
}

.payment-method-option.selected .method-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
    transform: scale(1.05);
}

.method-info {
    flex: 1;
}

.method-info h3 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.method-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

/* Product Variants */
.variant-selection {
    margin-bottom: 24px;
}

.variants-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.variant-product-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(26, 31, 46, 0.95) 100%);
    border-radius: 16px;
    border: 2px solid var(--card-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.variant-product-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--card-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.variant-product-image:hover {
    transform: scale(1.05);
}

.variant-product-info {
    flex: 1;
}

.variant-product-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, rgba(220, 38, 38, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.variant-product-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.variant-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(26, 31, 46, 0.95) 100%);
    border: 2px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.variant-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.variant-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.variant-card:hover .variant-card-image {
    transform: scale(1.05);
}

.variant-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.variant-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(220, 38, 38, 0.35),
        0 0 0 2px rgba(220, 38, 38, 0.2);
}

.variant-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(26, 31, 46, 0.95) 100%);
    box-shadow: 
        0 12px 32px rgba(220, 38, 38, 0.5),
        0 0 0 3px rgba(220, 38, 38, 0.4),
        inset 0 0 30px rgba(220, 38, 38, 0.1);
    transform: translateY(-4px) scale(1.01);
}

.variant-card.selected::before {
    content: '✓';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--success-color) 0%, #15803d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.5);
    z-index: 10;
    animation: checkmarkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.variant-info {
    flex: 1;
}

.variant-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.variant-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.variant-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--christmas-gold);
    margin: 12px 0;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, var(--christmas-gold) 0%, #f59e0b 50%, var(--christmas-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: priceShimmer 3s linear infinite;
}

@keyframes priceShimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.select-variant-btn {
    width: 100%;
    margin-top: auto;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.select-variant-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.5);
}

.variant-card.selected .select-variant-btn {
    background: linear-gradient(135deg, var(--success-color) 0%, #15803d 100%);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
}

.variant-card.selected .select-variant-btn:hover {
    background: linear-gradient(135deg, #15803d 0%, var(--success-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(22, 163, 74, 0.6);
}

.variant-info h3 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.discount-code-section {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(26, 31, 46, 0.3) 100%);
    padding: 20px;
    border-radius: 16px;
    border: 2px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.discount-code-input {
    background: var(--input-bg) !important;
    border: 2px solid var(--input-border) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    color: var(--text-primary) !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
}

.discount-code-input:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
    transform: translateY(-1px);
}

.discount-apply-btn {
    padding: 12px 24px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.discount-apply-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4) !important;
}

.discount-code-message {
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.payment-details {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(26, 31, 46, 0.3) 100%);
    border-radius: 16px;
    border: 2px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.address-box {
    background: var(--input-bg);
    padding: 16px;
    border-radius: 8px;
    margin: 12px 0;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--text-primary);
    border: 1px solid var(--input-border);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        display: grid;
        place-items: center;
    }
    
    .container {
        padding: 0;
        margin: 20px auto !important;
        width: 95% !important;
        max-width: 600px;
        left: auto !important;
        right: auto !important;
    }

    .card {
        padding: 24px;
        border-radius: 16px;
    }

    .header h1 {
        font-size: 24px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    select,
    textarea {
        font-size: 14px;
    }

    .modal-content {
        padding: 24px;
        width: 95%;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .support-modal-content {
        height: 90vh;
    }

    .support-messages {
        max-height: 300px;
    }

    .support-message {
        max-width: 85%;
    }
    
    .status-card {
        grid-template-columns: 1fr;
    }
    
    .status-chat-sidebar {
        max-height: 400px;
        margin-top: 24px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--error-color);
}

.toast-warning {
    border-left: 4px solid #ffaa00;
}

.toast-info {
    border-left: 4px solid var(--primary-color);
}

@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

/* Keyboard Navigation Improvements */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Better focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Loading states for buttons */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
}

/* Password Strength Indicator */
.password-strength-indicator {
    margin-top: 8px;
    animation: fadeIn 0.3s ease-out;
}

.password-strength-bar {
    height: 4px;
    background: var(--input-border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

/* Improved Error Messages */
.error-message {
    background: rgba(225, 112, 85, 0.1);
    border: 1px solid rgba(225, 112, 85, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--error-color);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message::before {
    content: '⚠️';
    font-size: 18px;
    flex-shrink: 0;
}

.success-message {
    background: rgba(0, 184, 148, 0.1);
    border: 1px solid rgba(0, 184, 148, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--success-color);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-message::before {
    content: '✅';
    font-size: 18px;
    flex-shrink: 0;
}

/* Selection color */
::selection {
    background: rgba(138, 43, 226, 0.3);
    color: var(--text-primary);
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(138, 43, 226, 0.1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 43, 226, 0.5);
}

/* Reviews Section */
.reviews-section {
    margin-top: 100px;
    margin-bottom: 100px;
    position: relative;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.reviews-section.fade-out {
    opacity: 0;
    visibility: hidden;
}

.reviews-section.fade-in {
    opacity: 1;
    visibility: visible;
}

.scroll-to-reviews-btn {
    text-align: center;
    margin: 40px auto;
    max-width: 500px;
    transition: opacity 0.3s ease;
}

#clickToSeeReviews {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    animation: bounceUpDown 2s ease-in-out infinite;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
}

#clickToSeeReviews:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

#clickToSeeReviews:active {
    transform: translateY(0);
}

.scroll-back-up-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    padding: 14px 24px;
    background: var(--primary-color);
    color: var(--text-primary);
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

.scroll-back-up-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
    background: rgba(138, 43, 226, 0.9);
}

.scroll-back-up-btn:active {
    transform: translateY(0);
}

@keyframes bounceUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.reviews-container.loaded {
    opacity: 1;
}

.review-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.review-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
}

.review-date {
    color: var(--text-secondary);
    font-size: 12px;
    margin-left: auto;
}

.review-text {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.review-image {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

.review-image img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.review-image img:hover {
    transform: scale(1.05);
}

.review-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.review-empty p {
    font-size: 16px;
    margin: 0;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-close:hover {
    opacity: 0.7;
}