* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.glass-button.danger {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.28), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(245, 87, 108, 0.32);
}

.glass-button:active {
    transform: translateY(0);
    filter: brightness(1.05);
}

.glass-button.loading {
    pointer-events: none;
    opacity: 0.85;
    animation: pulse 1.1s ease-in-out infinite;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: radial-gradient(1200px 800px at 10% 10%, rgba(120, 75, 162, 0.55), transparent 60%),
                radial-gradient(900px 600px at 90% 20%, rgba(79, 172, 254, 0.55), transparent 55%),
                radial-gradient(700px 700px at 40% 90%, rgba(245, 87, 108, 0.45), transparent 55%),
                linear-gradient(135deg, #0b1020 0%, #0b0f1a 40%, #070a12 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow-x: hidden;
    position: relative;
}

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

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, -100px) scale(1.1); }
    50% { transform: translate(-100px, 100px) scale(0.9); }
    75% { transform: translate(50px, 50px) scale(1.05); }
}

.page {
    display: none;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.page.active {
    display: flex;
}

.glass-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(26px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(160, 231, 255, 0.14), rgba(255, 255, 255, 0.12), transparent);
    animation: shimmer 4s infinite;
}

.glass-container::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(130, 255, 214, 0.12), rgba(79, 172, 254, 0.08), rgba(245, 87, 108, 0.10));
    filter: blur(20px);
    z-index: -1;
    opacity: 0.85;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
    letter-spacing: -0.5px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.brand-mark {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    cursor: default;
    user-select: none;
}

.micro-hint {
    margin-top: 18px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.3px;
}

.glass-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.glass-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(79, 172, 254, 0.40);
    box-shadow:
        0 0 0 3px rgba(79, 172, 254, 0.12),
        0 0 30px rgba(130, 255, 214, 0.10);
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(130, 255, 214, 0.38);
    box-shadow:
        0 0 0 3px rgba(79, 172, 254, 0.12),
        0 0 30px rgba(79, 172, 254, 0.14);
}

.input-group label {
    position: absolute;
    top: -10px;
    left: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    border-radius: 5px;
}

.glass-button {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.glass-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.glass-button:hover::before {
    width: 300px;
    height: 300px;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.20);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.glass-button.primary {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.35), rgba(130, 255, 214, 0.18), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(130, 255, 214, 0.28);
    font-size: 1.2rem;
    padding: 20px 40px;
    margin: 30px 0;
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.40),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.glass-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.upload-section {
    margin: 30px 0;
}

.file-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.file-upload-area:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.file-upload-area.dragover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.15);
}

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

.status-message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9rem;
}

.status-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.data-preview {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 200px;
    overflow-y: auto;
}

 .owner-dashboard {
     margin-top: 22px;
     display: flex;
     flex-direction: column;
     gap: 18px;
 }
 
 .stats-row {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 10px;
 }
 
 .stat-card {
     padding: 14px 12px;
     border-radius: 14px;
     background: rgba(255, 255, 255, 0.06);
     border: 1px solid rgba(255, 255, 255, 0.12);
     box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
 }
 
 .stat-label {
     font-size: 0.82rem;
     color: rgba(255, 255, 255, 0.65);
     letter-spacing: 0.3px;
 }
 
 .stat-value {
     margin-top: 6px;
     font-size: 1.45rem;
     font-weight: 800;
     color: rgba(255, 255, 255, 0.92);
     text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
 }
 
 .owner-tools {
     padding: 14px;
     border-radius: 16px;
     background: rgba(255, 255, 255, 0.05);
     border: 1px solid rgba(255, 255, 255, 0.12);
 }
 
 .tool-row {
     display: flex;
     gap: 10px;
     align-items: center;
     justify-content: center;
     flex-wrap: wrap;
 }
 
 .tool-row + .tool-row {
     margin-top: 10px;
 }
 
 .owner-list {
     text-align: left;
     padding: 14px;
     border-radius: 16px;
     background: rgba(255, 255, 255, 0.04);
     border: 1px solid rgba(255, 255, 255, 0.12);
 }
 
 .list-header {
     display: flex;
     align-items: baseline;
     justify-content: space-between;
     margin-bottom: 10px;
 }
 
 .list-title {
     font-weight: 800;
     color: rgba(255, 255, 255, 0.9);
 }
 
 .list-count {
     font-size: 0.85rem;
     color: rgba(255, 255, 255, 0.6);
 }
 
 .entries {
     display: flex;
     flex-direction: column;
     gap: 10px;
     max-height: 260px;
     overflow: auto;
     padding-right: 6px;
 }
 
 .entry {
     border-radius: 14px;
     background: rgba(255, 255, 255, 0.05);
     border: 1px solid rgba(255, 255, 255, 0.12);
     padding: 12px;
     display: grid;
     grid-template-columns: 1fr auto;
     gap: 10px;
     animation: entryIn 260ms ease-out;
 }
 
 @keyframes entryIn {
     from { opacity: 0; transform: translateY(6px); }
     to { opacity: 1; transform: translateY(0); }
 }
 
 .entry-main {
     display: flex;
     flex-direction: column;
     gap: 6px;
 }
 
 .entry-line {
     font-family: 'Courier New', monospace;
     font-size: 0.9rem;
     color: rgba(255, 255, 255, 0.9);
 }
 
 .entry-meta {
     font-size: 0.82rem;
     color: rgba(255, 255, 255, 0.6);
 }
 
 .entry-actions {
     display: flex;
     flex-direction: column;
     gap: 8px;
     justify-content: center;
 }
 
 .entry-actions .glass-button {
     padding: 10px 12px;
     font-size: 0.8rem;
 }
 
 .modal {
     position: fixed;
     inset: 0;
     display: grid;
     place-items: center;
     z-index: 30;
 }
 
 .modal.hidden {
     display: none;
 }
 
 .modal-backdrop {
     position: absolute;
     inset: 0;
     background: rgba(0, 0, 0, 0.55);
     backdrop-filter: blur(6px);
     animation: fadeIn 200ms ease-out;
 }
 
 @keyframes fadeIn {
     from { opacity: 0; }
     to { opacity: 1; }
 }
 
 .modal-panel {
     position: relative;
     width: min(640px, calc(100vw - 40px));
     border-radius: 18px;
     padding: 18px;
     background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
     border: 1px solid rgba(255, 255, 255, 0.16);
     box-shadow: 0 26px 90px rgba(0, 0, 0, 0.55);
     backdrop-filter: blur(24px);
     animation: popIn 220ms ease-out;
 }
 
 @keyframes popIn {
     from { transform: translateY(10px) scale(0.98); opacity: 0; }
     to { transform: translateY(0) scale(1); opacity: 1; }
 }
 
 .modal-title {
     font-size: 1.1rem;
     font-weight: 900;
     color: rgba(255, 255, 255, 0.92);
     margin-bottom: 12px;
 }
 
 .modal-grid {
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     gap: 10px;
 }
 
 .modal-actions {
     display: flex;
     gap: 10px;
     justify-content: flex-end;
     margin-top: 14px;
 }
 
 .toast-host {
     position: fixed;
     bottom: 18px;
     right: 18px;
     display: flex;
     flex-direction: column;
     gap: 10px;
     z-index: 40;
     pointer-events: none;
 }
 
 .toast {
     pointer-events: none;
     min-width: 260px;
     max-width: 360px;
     padding: 12px 14px;
     border-radius: 14px;
     background: rgba(255, 255, 255, 0.10);
     border: 1px solid rgba(255, 255, 255, 0.16);
     backdrop-filter: blur(18px);
     box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
     color: rgba(255, 255, 255, 0.92);
     animation: toastIn 240ms ease-out;
 }
 
 .toast.success { border-color: rgba(76, 175, 80, 0.35); }
 .toast.error { border-color: rgba(244, 67, 54, 0.35); }
 
 @keyframes toastIn {
     from { opacity: 0; transform: translateY(10px); }
     to { opacity: 1; transform: translateY(0); }
 }

.card-display {
    margin: 30px 0;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease forwards;
}

.card-display.hidden {
    display: none;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.card-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 3s linear infinite;
}

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

.card-info {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.navigation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glass-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .glass-button.primary {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .glass-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .glass-container {
        padding: 20px 15px;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .file-upload-area {
        padding: 30px 15px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
