/* ===== PWA Install Banner ===== */
#pwa-install-banner {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: calc(100% - 32px);
    max-width: 480px;
}

#pwa-install-banner.visible {
    bottom: 16px;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
}

.pwa-banner-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
}

.pwa-banner-text strong {
    display: block;
    font-size: 14px;
    color: #f1f5f9;
    margin-bottom: 2px;
}

.pwa-banner-text span {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

.pwa-banner-install {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.pwa-banner-install:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.pwa-banner-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pwa-banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ===== Notification Permission Toggle (for settings page) ===== */
.pwa-notif-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 12px 0;
}

.pwa-notif-toggle label {
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

.pwa-notif-toggle .switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.pwa-notif-toggle .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pwa-notif-toggle .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: 0.3s;
}

.pwa-notif-toggle .slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.pwa-notif-toggle .switch input:checked+.slider {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.pwa-notif-toggle .switch input:checked+.slider::before {
    transform: translateX(20px);
}

/* ===== PWA Update Banner (reuses .pwa-banner-* styles) ===== */
#pwa-update-banner {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: calc(100% - 32px);
    max-width: 480px;
}

#pwa-update-banner.visible {
    bottom: 16px;
}

/* ===== iOS Install Guide ===== */
#ios-install-guide {
    position: fixed;
    bottom: -400px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: calc(100% - 32px);
    max-width: 400px;
}

#ios-install-guide.visible {
    bottom: 20px;
}

.ios-guide-content {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
    position: relative;
}

.ios-guide-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ios-guide-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.ios-guide-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-right: 30px;
}

.ios-guide-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.ios-guide-header strong {
    display: block;
    font-size: 16px;
    color: #f1f5f9;
}

.ios-guide-header span {
    font-size: 12px;
    color: #94a3b8;
}

.ios-guide-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ios-guide-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 12px;
    line-height: 1.4;
}

.ios-guide-step strong {
    color: #60a5fa;
}

.ios-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ios-guide-step svg {
    vertical-align: middle;
    flex-shrink: 0;
}