 /* Toast Container */
 .toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Toast Base */
.toast {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 200px;
    border-radius: 25px;
    padding: 12px 16px;
}

.toast.expanded {
    border-radius: 16px;
    padding: 16px 24px;
    min-width: 320px;
}

.toast.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.toast.hide {
    opacity: 0;
    transform: scale(0.95) translateY(-8px);
}

/* Background Gradients */
.toast::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.toast.download::before {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.toast.upload::before {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast.wifi::before {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.toast.loading::before {
    background: linear-gradient(135deg, #050300, #1e1101);
}

.toast.success::before {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.toast.error::before {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
}

.progress-fill {
    height: 100%;
    width: 0%;
    transition: width 0.1s ease-out;
}

.download .progress-fill {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.upload .progress-fill {
    background: linear-gradient(90deg, #10b981, #059669);
}

.wifi .progress-fill {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.loading .progress-fill {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.success .progress-fill {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.error .progress-fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Content */
.toast-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toast-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    padding: 8px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.download .toast-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.upload .toast-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.wifi .toast-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.loading .toast-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.success .toast-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.error .toast-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast-text {
    color: white;
    transition: all 0.3s ease;
}

.toast-title {
    font-weight: 500;
    font-size: 14px;
    margin: 0;
}

.toast-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 4px 0 0 0;
    display: none;
}

.toast.expanded .toast-subtitle {
    display: block;
}

.toast:not(.expanded) .toast-title {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast.expanded .toast-text {
    display: block;
}

.toast:not(.expanded) .toast-text.expanded-only {
    display: none;
}

.toast.expanded .toast-text.collapsed-only {
    display: none;
}

/* Close Button */
.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: none;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
}

.toast.expanded .close-btn {
    display: flex;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Icons */
.icon {
    width: 16px;
    height: 16px;
}

/* Spin Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Shine Effect */
.toast::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 90%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Demo Section */
.demo-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-top: 100px;
}

.demo-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.demo-subtitle {
    color: #9ca3af;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.demo-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.demo-panel h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.demo-btn {
    background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.demo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-download {
    --btn-from: #3b82f6;
    --btn-to: #2563eb;
}

.btn-upload {
    --btn-from: #10b981;
    --btn-to: #059669;
}

.btn-wifi {
    --btn-from: #8b5cf6;
    --btn-to: #7c3aed;
}

.btn-loading {
    --btn-from: #f59e0b;
    --btn-to: #d97706;
}

.btn-success {
    --btn-from: #22c55e;
    --btn-to: #16a34a;
}

.btn-error {
    --btn-from: #ef4444;
    --btn-to: #dc2626;
}

.features {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    text-align: left;
}

.features h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.features ul {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.6;
}

.features li {
    margin-bottom: 0.5rem;
}