/* Connect Page Specific Styles */
.connect-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 100px 5%;
}

.connect-card {
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.connect-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
}

.connect-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Tabs */
.toggle-box {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
}

.t-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.t-btn.active {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.view-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view-section.active {
    display: block;
}

/* Inputs */
.input-group {
    margin-bottom: 2rem;
}

.phone-wrapper {
    margin-bottom: 1.5rem;
    text-align: left;
}

/* intl-tel-input overrides for dark theme */
.iti {
    width: 100%;
    display: block !important;
}
.iti__flag-container {
    color: black;
}
.iti__selected-flag {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px 0 0 8px;
}
.iti__country-list {
    background: #111 !important;
    color: white;
    border: 1px solid var(--glass-border) !important;
}
.iti__country-list .iti__country.iti__highlight {
    background: rgba(0, 240, 255, 0.2) !important;
}

.aura-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 1rem;
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
}

.aura-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.full-width {
    width: 100%;
    display: block;
}

/* QR Code View */
.qr-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

#qr-container img {
    border-radius: 8px;
    border: 4px solid white;
    background: white;
}

/* Pairing Code Display */
.pairing-code-display {
    background: rgba(0, 240, 255, 0.05);
    border: 1px dashed rgba(0, 240, 255, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.pairing-code-display p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.code-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--accent-cyan);
    font-family: 'Space Grotesk', monospace;
}

.icon-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.icon-btn:hover {
    transform: scale(1.1);
}

.small-text {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

.success-msg {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid #25D366;
    border-radius: 10px;
    color: #25D366;
    font-weight: bold;
}

.hidden {
    display: none !important;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 240, 255, 0.1);
    border-top: 4px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease forwards;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.toast i {
    font-size: 1.2rem;
}

.toast.success { border-left: 4px solid #25D366; }
.toast.success i { color: #25D366; }

.toast.error { border-left: 4px solid #ff2a2a; }
.toast.error i { color: #ff2a2a; }

.toast.info { border-left: 4px solid var(--accent-cyan); }
.toast.info i { color: var(--accent-cyan); }

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

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

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(50px); }
}
