:root {
    --primary: #9d4edd;
    --primary-light: #c77dff;
    --primary-dark: #7b2cbf;
    --bg-color: #0b090a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #f8f9fa;
    --text-muted: #adb5bd;
    --error: #ef233c;
    --success: #2dc653;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Background Animated Orbs */
.background-orbs {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 40vw; height: 40vw;
    background: var(--primary-dark);
    top: -10%; left: -10%;
}

.orb-2 {
    width: 30vw; height: 30vw;
    background: #e0aaff;
    bottom: -10%; right: -10%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 10vh) scale(1.2); }
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
    margin-top: 0.5rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.input-group {
    margin-bottom: 1.8rem;
}

label {
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #e9ecef;
}

input[type="text"] {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(199, 125, 255, 0.1);
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.file-upload-wrapper:hover, .file-upload-wrapper.dragover {
    border-color: var(--primary-light);
    background: rgba(199, 125, 255, 0.05);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    pointer-events: none;
}

.upload-placeholder svg {
    color: var(--primary-light);
}

button {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--primary);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Status Box */
.status-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.5s ease;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(199, 125, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-light);
    animation: spin 1s linear infinite;
}

.status-title {
    font-size: 0.95rem;
    color: #fff;
}

.status-sub {
    font-size: 0.8rem;
    color: var(--primary-light);
    margin-top: 2px;
}

/* Result Box */
.result-box {
    margin-top: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(45, 198, 83, 0.1), rgba(45, 198, 83, 0.02));
    border: 1px solid rgba(45, 198, 83, 0.3);
    border-radius: 16px;
    text-align: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-content h3 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price {
    margin: 1rem 0;
    color: var(--success);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
}

.currency {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

#shipping-value {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.category-result {
    font-size: 0.9rem;
    color: #fff;
    opacity: 0.8;
}

/* Error Box */
.error-box {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: rgba(239, 35, 60, 0.1);
    border: 1px solid rgba(239, 35, 60, 0.3);
    border-radius: 12px;
    color: var(--error);
    text-align: center;
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease;
}

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

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